Abstracts environment config out of AppController.