Some functionality related to the sites table still resides in the Wikibase extension.
Most importantly, the populateSitesTable script reads the site matrix from meta, and imports it into the local sites table. The script should probably be renamed, e.g. to loadSiteMatrixIntoSitesTable, or some such.
The helper classes SitesBuilder and SiteMatrixParser should also be moved into core.