Reducing code redundency.