Deductions & credits

Now this situation has gotten even more interesting.  We went to install today and discovered historical termite damage in the support beam.  So we decided to replace with a steel beam.  

 

Is replacing a bad wooden support beam with a steel beam now considered an improvement?  It is arguable that this doesn't add any value to the property.  I cannot add the additional and expect someone to pay because of it.  A functional support beam is presumed.

 

The cost is now $9400 so can I still write this off in full as a 2024 repair or do I now have to depreciate this over 27.5 years?  Thanks.