Remove legacy HTML from the base template