Refactored all sharedPreferences access into its own class.