Removing parts of template