Use PreferenceType instead of raw strings