Factor code, bail out in case we have an enum as templ arg