@daniel suggested at https://gerrit.wikimedia.org/r/#/c/mediawiki/core/+/584247/ that a MergeHistoryFactory injecting dependencies to the MergeHistory class would be a good idea
The class currently uses:
- A load balancer / database access (currently done via wfGetDB)
- The ContentHandlerFactory service
- The PermissionManager service
- The WatchedItemStore service
And after reducing use of Revision objects in the patch linked above, the RevisionStore service