The key thing to note is that legacy systems are only legacy because they’ve been successful enough to last this long. Legacy systems can be made more flexible and maintainable by organizing them based on business needs and capabilities, making individual parts loosely coupled and independently deployable. This allows legacy systems to be adapted over time without needing to replace the entire system at once.