Abstract Settings code into SettingsBase.