Simplify/unify how @@create functions are implemented for Loader and Realm.