Can we avoid injecting an `ObjectManager` and use only a `MetadataFactory` here? This would allow proxy usage even when there is no `ObjectManager` in place (services and similar stuff)