Add helper to reduce some redundancy in templates.