Refactoring settings