Refactoring the settings