Change GetInfoTmpl to use a trait, reducing code duplication.