[#1550] Remove unused "template" option

As far as I could see, this was never used. Maybe the structure of this code
came from copy/pasting from somewhere else where it made sense, and it was left
by mistake.