Remove unnecessary block from template