[Templating] Unset attribute to avoid wasting memory