Reduces template variables to one