[PLAT-6548] Remove ThreadLocalAnalyticsEnvironment