How do you approach migrating a legacy system that requires manual interaction to a modern, fully automated CI/CD pipeline?