SpecialUpload::getInitialPageText is called outside of the special page and should be moved out of that class.
Maybe into a upload related service with some other upload related things.
Or it is enough to make the hook container an optional parameter for this?
https://codesearch.wmcloud.org/search/?q=getInitialPageText&i=nope&files=&repos=