These globals were neccessary if the extension is installed by composer. Should we wrap it in a function like it is done in Wikibase?