Resolving circular dependency of getEnv