Remove unused stuff from template.