Legacy systems vs. modern cloud infrastructure: When does old tech become too expensive to keep?