Don't call config() in the global space

Calling `config` in the global space breaks the config generator.
There's another case like this in the wsgi transport but it's not loaded
as part of the config generation step.

Change-Id: If4bccf54e89994c665bb1d5f4f0766e7b7f16c6d
Merge "Don't call config() in the global space"