Reduce code redundancy.