Move ori pref code to tune.pref