Make templates be a named tuple rather than a full class