Refactor WikiPage.update_content() and related methods