Reduce template redundancy