Reduce redundant code.