Wikibase has a Wikibase\Lib\Changes\CentralIdLookupFactory class, which returns a CentralIdLookup, but only if it’s not a LocalIdLookup, because a LocalIdLookup isn’t safe to use for cross-wiki propagation. (Both CentralIdLookup and LocalIdLookup are MediaWiki core classes.)
As part of the larger Wikibase decoupling effort, we would like to extract the Wikibase\Lib\Changes namespace as a separate, independent library (T256058). This means that the library should not use MediaWiki core classes (though it may use MediaWiki-related libraries like assert). As CentralIdLookupFactory only uses MediaWiki core classes (and no Wikibase classes), moving it into MediaWiki core seems like the best solution.
Consider asking @Legoktm for review since Matt Flaschen, who originally implemented the class, isn't at the WMF any more.