#software architecture How to Modernize a Legacy Application with AI Without Turning It Into a Rewrite