Remove some code from the template