Avoid multiple template parameters.

The binary code was very large because the main execute method was
being instantiated 40 times.