newInstance can possibly be removed as well.
Migration path: replace (for instance)
$wbRepo = Wikibase\Repo\WikibaseRepo::getDefaultInstance(); $entityIdLookup = $wbRepo->getEntityIdLookup();
by
$entityIdLookup = Wikibase\Repo\WikibaseRepo::getEntityIdLookup();