Refactoring MediaWiki class.