Optimizing Legacy Systems for Cloud Migration: Patterns and Pitfalls in AWS Transition | Synapse