Wait. Wasn't AI supposed to alleviate the burden of legacy code?!
I am thinking of situations where one of those aren't true - where testing a proposed update is expensive or complicated, that are in systems that are hard to physically push updates to (think embedded systems) etc