Refactor ASB based template helpers