This will help with testing T294658: Create a log entry when the RevisionHandler is called and T294657: Create a log entry when the LogHandler is called.
For similar work where a ReaderFactory was introduced, see this patch: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/IPInfo/+/731936