Avoid using WikiPage::factory()
Avoid using WikiPage::factory()

WikiPage::factory() is deprecated since 1.36 and should be replaced
with WikiPageFactory::newFromTitle().

Bug: T297688
Change-Id: I231d1eb94cd454e1ec3a606279287740dd0f4e60

wikimedia/mediawiki-extensions-Kartographer,wikimedia/mediawiki-extensions-Kartographer,wikimedia/mediawiki-extensions-Kartographer