Split system_prefs into its own script.