Factor out internal +managedObjectContextClass method