Turn pref names into constants