AI legacy modernization