Avoid unnecessary code duplication