Collapse some duplication in Confit templates