Remove junk from standard template