In order to exercise the code paths involving the new virtual terms domain db, we can configure $wgVirtualDomainsMapping to point to the existing beta wikidata main wiki database. This config needs to be set for beta wikidata itself and all connected Wikibase clients.
The changes need to happen in the operations/mediawiki-config repo in the InitialiseSettings-labs.php file.