Pull GetEnv() and its dependencies out of main.py so admin.py can use
them.