Moves appSettings to external file and updates the code that modifies the app settings.