Upkeep of Buildings

I have been struggling a lot with repair and upkeep, but today I think I might have figured it out. It seems to be tied to the underlying desirability of the area.

I was fixing some abandoned house by raising desirability and with in just a few months ALL of my repair and condemned issue were fixed. Including barns/theaters/markets.