Refactor SharedPreferencesUtil