code duplication removed ty code climate