Remove unneeded variable from template