migrate from OC_Preferences to DI config object

get rid of private static access