Refactored APP.initSettings