Refactor of Wikia MediaWiki extension ProtectSite