migrate from OC_Preferences to DI config object

get rid of private static access and move to DI access