legacy modernization pitfalls