Convert OC_Preference to object interface

@kabum @butonic @bantu @DeepDiver1975