Moved SettingsWindows code to core.