At the Tech.Rocks Summit, Carola Lilienthal explained her approach to breaking up an ageing software system, drawing on the example of a container terminal at the Port of Hamburg.
Scientists confirm: This is the most effective way to get your cat’s attention, according to new research
Elderly Couple Refuses Reserved Seats—Viral Train Standoff Sparks Fiery Debate on Courtesy
A legacy system is an old piece of software that still supports a company’s operations but has become so difficult to change that people are afraid to touch it. Built up over many years, it has accumulated new features without the underlying structure ever being properly revisited. The code is increasingly hard to understand, each change costs more than the last, and even a small update can raise fears of an outage. Rebuilding everything from scratch is both time-consuming and risky. So how can a system be modernised without breaking it?
This is the work of Carola Lilienthal, managing director of WPS, a 180-person company based in Hamburg. At the Tech.Rocks Summit, she presented her Domain-Driven Transformation method, using Hamburg’s Elbphilharmonie as an analogy. The concert hall was built on top of an old harbour warehouse, finished seven years behind schedule and at roughly ten times its initial budget. “Building something new on top of something old is exactly what we do every day with our legacy systems,” she said.
A “big ball of mud” that keeps getting more expensive
For Lilienthal, the challenge of legacy software starts with the way it has evolved. “These systems have been developed over many years, often under pressure. New things were added, but the old parts were never adapted,” she explained.
To illustrate the problem, she showed a map of a legacy system containing 463 classes—the basic building blocks of its code—spread across ten components, with connections running between them all. There are so many dependencies that the middle of the diagram is impossible to make out. “You can’t remove a single class from this cycle. Every other one depends on it,” she said.
In Domain-Driven Design (DDD), an approach that structures software around the business domain, this kind of system is known as a “big ball of mud.” “Every new feature costs more to build than the one before, and nobody dares touch the heart of the system,” Lilienthal said. Her method has four stages: rediscover the domain, define the target architecture, compare it with the architecture in place, and then transform the system incrementally.
Start with the business, not the code
To demonstrate how the approach works, Lilienthal described a container terminal at the Port of Hamburg, whose team contacted WPS five years ago. Over the following two years, they divided up the terminal’s 20-year-old operating software. “The terminal now runs much faster, and costs have fallen considerably,” she said.

The first stage—rediscovering the domain—begins with a workshop involving business experts, without opening the existing software. “Put the software aside and start by talking to the experts: what do you do in your domain, and how do you work?” Lilienthal said. Together, the team mapped a container’s journey, from the truck that delivers it to the crane that loads it onto a ship.
The second stage is to define the target architecture by dividing that process into clearly bounded areas known as bounded contexts. Lilienthal recommends looking for “the points where responsibility passes from one person or team to another.” At the terminal, the work fell into four domains: truck deliveries, operations in the storage area, storage planning, and loading containers onto ships.
Why You Should Never Reheat These Foods in the Microwave – The Hidden Dangers Experts Warn About
I tried the top 5 guard dogs—here’s what makes these breeds the ultimate protectors
Use measurements to move beyond opinion
Once the target architecture has been defined, the third stage is to compare it with the code that already exists. In many cases, the modules identified by code-analysis tools have little in common with the business domains. “Unfortunately, that’s entirely normal with legacy systems,” Lilienthal noted.

To assess modularity objectively, WPS uses the Modularity Maturity Index (MMI), a score ranging from zero to ten. A score below four indicates a “big ball of mud.” Between four and eight, the system has a well-structured layered architecture, but it is not organised around the business domain. Scores above eight indicate modules arranged by domain. “The MMI turns a debate based on opinions into one based on numbers,” she said.
Stabilise, strengthen, then split—the sequence matters
The fourth stage is the system transformation itself. According to Lilienthal, it consists of three phases, and getting them in the right order is essential to the project’s success.
First, stabilise the system: automate builds and deployments, update frameworks, and add tests. Lilienthal said this requires relatively little investment and can deliver quick benefits, including fewer bugs and reduced security risks.
Next, strengthen the domain by bringing the code closer to the language used by the business. This makes it possible for “changes to become much safer and faster,” she said. The final phase is to split up the system. It takes the longest and costs the most, but can give teams greater independence and shorten time to market. “Anyone who tries to split a system before completing the earlier steps is certain to burn through their budget,” she warned.
AI won’t do the work for the teams
That leaves a question many teams are asking, Lilienthal said: could AI solve the legacy problem if an entire system were handed over to a coding agent? “Our experience is that it doesn’t work. AI struggles with legacy systems for exactly the same reasons we do,” she said.
AI looks for recurring structures to make sense of code. Legacy systems may have no consistent structures—or may have several generations of them layered on top of one another. Business logic is scattered throughout the software, and the code needed to complete a task can exceed a model’s context window. Lilienthal said the result can be hallucinated solutions that are syntactically valid but of no practical use.
AI therefore needs the same conditions as the people maintaining the system: “Manageable, cohesive units, business-domain language within the code, and interfaces that can be explained.” She cited a study by Markus Borg and colleagues, published in January 2026: “The healthier the code is for humans, the more accurate AI refactorings are.”
As the Elbphilharmonie example shows, building something new on top of something old “can work, but you have to do it in the right order,” Lilienthal concluded.
Carola Lilienthal is managing director of WPS Workplace Solutions in Hamburg, where she is responsible for software architecture. She holds a doctorate in computer science from the University of Hamburg and has been analysing software architectures since 2003. With Henning Schwentner, she co-authored Domain-Driven Transformation, published in English by O’Reilly in November 2025.
Similar Posts
- Apple Unifies iCloud Email Domains: Streamlined Communication Ahead!
- Figma: Code Prototyping Now Live on Its Collaborative Canvas
- MAIF’s IT Department Revealed: Experts Share Insights on Parlons Tech
- Top 10 Tech Trends for 2026: Insights from Gartner Revealed!
- OpenAI Unveils Frontier: New AI Management Platform Revolutionizes Business Operations!

Jordan Park writes in-depth reviews and editorial opinion pieces for Touch Reviews. With a background in UI/UX design, Jordan offers a unique perspective on device usability and user experience across smartphones, tablets, and mobile software.