In the US states that I know well, a residential tenant may perform necessary repairs to bring the space up to health and safety codes, and may deduct the cost from their rent. They have an obligation to notify the property manager, in advance in the case of non-emergency repairs, or after the fact otherwise. There are additional details to consider as well.
I don't know if this would apply to a commercial tenant.
But it would definitely not apply to non-violating conditions like the OP's case.