Remove unneeded variable for template