Cleaning up markup for Pages