There are some places in the code where we call newEntitySerializer or newEntityDeserializer directly on the factories. These serializers and deserializers however can only handle items and properties so we have to pull them from the global factory (WikibaseRepo and WikibaseClient) instead.
One issue is that some of these places use flags when creating the factory so we need a mechanism to inject those flags into the global factory.