[fix] Replace Site factory with APISite class for type
[fix] Replace Site factory with APISite class for type

Bug: T284880
Change-Id: Iee7cf756abb9f326b3c9c146f4c513e42d5ce119

wikimedia/pywikibot-core,wikimedia/pywikibot-core