Modularize APP.environments