Bridging the Legacy Gap: Engineering the AI Factory for the Generative Era