Avoid code redundancy