Refactored ApplicationPreferences.