Refactored the loading of application.environment properties and maven profiles