Transforming Legacy Systems for the Future of AI and Analytics