Moved the page update code to the WikiContent class