Refactoring Preferences.