Refactor cf env to not use an application requirement

Probably seemed like a good idea at the time, but we are about to change how
the environment is retrieved from Cloud Controller, and making this change
will make it easier for us to do that.