Indeed, the point is not to change the behavior but to reduce code duplication.

Moreover, it makes it much easier to modify/extend the behavior of the discriminatorMap since overriding a single function is required. Currently, if we want to extend the behavior of the discriminatorMap, we need to override both the method and the `UnitOfWork`'s `getOrCreateDocument()` which is quite monolithic.