Factored Template.realize() entry resolution logic into TemplateEntry.