Refactor the post and page objects to share more code.