Currently the File Importer will accept any URL and then decide if it can handle files at that URL or not.
on WMF production currently en.wikipedia.org would succeed and en.m.wikipedia.org will fail.
To avoid hardcoding things specific to the WMF sites in the extension we should allow some sort of configurable host normalization.
Currently there is a TODO in TargetUrl::getHost() for this.