Remove duplicated code
Remove circular dependency between PageOperationMixin and WikiPage
Minor refactorings