CIO in kandura reviews system modernization cost projections with consultants in a Dubai DIFC boardroom

Images: AI-generated for CodeNicely

Enterprises Software & Technology December 2, 2026 • 13 min read

When Refactoring Buys Time and When It Burns Money

For: COO or CIO at a UAE enterprise — retail group, logistics operator, or financial services firm — sitting on a 7-to-10-year-old core system that their IT head says needs 'modernizing', facing a budget cycle where they must choose between incremental refactoring and a full rewrite, with no framework to tell the CFO which is the right call or what it will cost either way

In this guide
  1. Why every modernization pitch is biased
  2. The read-vs-ship ratio, and why 60:40 is the inflection point
  3. The cost of doing nothing, in CFO terms
  4. The sequencing choice: strangler-fig vs bounded rewrite
  5. How to phase the spend so wave one funds wave two
  6. What the business has to supply
  7. What this costs — and what would turn the range into a quote
  8. The argument for the CFO meeting, in six lines
  9. Frequently Asked Questions

If your engineers spend more than 60% of their time reading and working around the existing codebase rather than shipping new capability, incremental refactoring will cost you more over 24 months than a bounded rewrite, even at twice the upfront price. That ratio — read-vs-ship — is the single auditable metric that resolves the rewrite-vs-refactor argument, and it is the number to put in front of your CFO before anyone shows a slide about microservices.

The rest of this post is the argument you can take into that budget meeting: how to measure the ratio honestly, how to price the cost of doing nothing in terms the CFO recognises, how CBUAE and DIFC obligations change the maths, and how to sequence the spend so the first increment pays for the second.

Why every modernization pitch is biased

Vendors pitch what they are set up to build. A systems integrator with a 200-person offshore refactoring practice will find reasons to refactor. A product studio that specialises in greenfield builds will find reasons to rewrite. The COO or CIO sitting in the middle has no neutral framework to challenge either pitch, which is how organisations end up three years into a refactor that has delivered 40% of the planned scope and consumed 120% of the budget — or six months into a rewrite that cannot replicate an edge case nobody documented in 2016.

The way out is to stop asking which approach is better and start asking what is the read-vs-ship ratio in the current codebase, and what does it cost us per quarter? That reframes the decision from an architectural debate into a unit-economics question, which is the register your CFO already thinks in.

The read-vs-ship ratio, and why 60:40 is the inflection point

Empirical research on developer time allocation has been consistent for over a decade: engineers spend 58–70% of their working hours reading and comprehending existing code, and only around 5% actually editing it. In a healthy codebase that ratio is a feature — it means engineers are being careful. In a legacy codebase it is a tax.

Two bar charts compare read-vs-ship ratios: a healthy codebase below 60% read time favours refactoring; a legacy codebase above 60% triggers a bounded rewrite.
Once reading and workarounds consume more than 60% of engineering time, a bounded rewrite becomes cheaper over 24 months — even at twice the upfront price.
Engineering analytics dashboard showing read-vs-ship ratio at 63% with a red threshold line marking the refactor tipping point
When the read-vs-ship bar crosses 60%, the dashboard stops being a developer metric and becomes a CFO line item.

Stripe's Developer Coefficient research quantified the tax: engineers spend an average of 17.3 hours per week on maintenance and technical debt, roughly 42% of a 41-hour week. McKinsey's survey of 50+ large-enterprise CIOs found that 10–20% of every dollar earmarked for new products is redirected to servicing debt, and that debt itself represents 20–40% of the total value of a technology estate. The Stack Overflow 2024 survey of 65,000+ developers found 62.4% cite technical debt as their top work frustration — more than twice the second-ranked complaint.

Put those together and you get a measurable threshold. If the engineers on your core system spend less than roughly 60% of their time on reading and workarounds, incremental refactoring is still the economically rational move — each sprint retires more debt than it accrues. Once the ratio crosses 60:40, every refactoring sprint is subsidising the debt faster than it retires it, because the cost of comprehending the next change grows faster than the cost of shipping it. At that point a bounded rewrite — not a big-bang replacement, a bounded rewrite — is cheaper over a 24-month horizon even at a materially higher upfront cost.

How to measure it in two weeks, not two quarters

You do not need a consultancy to produce this number. Three inputs, available from any engineering team that uses Jira and Git:

Run that measurement for four sprints. The number will not lie to you, and it will not lie to the CFO.

The cost of doing nothing, in CFO terms

CFOs do not fund modernization because engineers are frustrated. They fund it because the cost of not modernizing shows up on a line item they already own. There are four such line items, and you need numbers for all of them before the meeting.

1. Direct maintenance and licence spend

An academic survey of enterprise modernization programs found legacy core banking systems averaged 25–30 years of age with maintenance consuming 70–80% of IT budgets and security vulnerability rates 3.2× higher than modern systems. Your number will be different, but the shape is consistent: a seven-to-ten-year-old .NET monolith or ERP typically has support contracts, specialist contractor rates, and infrastructure costs that have been quietly compounding at 8–15% a year while the business grew around them. Pull the last three years of vendor invoices and extrapolate forward five. That is the baseline do-nothing cost.

2. Headcount absorbed by workarounds

This is the one CFOs usually miss because it is distributed across business units. The ops team that has three people reconciling an export because the system cannot produce the report the auditors want. The finance team that maintains a parallel spreadsheet because the GL does not support a currency the business started trading in 2021. The customer-service team with a macro that resubmits failed transactions. Count the FTE-equivalents. In a typical seven-year-old enterprise system the answer is between 4 and 12 people across the business whose job exists because the system cannot do its job.

3. Compliance exposure

This is where the UAE context changes the arithmetic materially. The CBUAE's Open Finance Regulation C 7/2023, effective April 2024, requires licensed institutions to maintain a documented API monitoring framework, SDLC controls for operational resilience, and board-level accountability for technology risk. A legacy core that cannot produce auditable API logs or evidence SDLC controls is not merely inconvenient — it is a documented regulatory gap.

Layer on the post-FATF-greylist environment. Since the UAE's removal from the grey list in February 2024 and the approved 2024–2027 National AML/CFT Strategy in September 2024, the bar for transaction-monitoring integrity at CBUAE- and DFSA-regulated firms has risen sharply. Legacy systems that cannot generate real-time CTR/STR reports in the required formats are a regulatory liability, not a technical annoyance. The cost of doing nothing here is not a line item — it is a tail risk the CFO needs quantified as 'the probability-weighted cost of a supervisory finding plus remediation under a deadline we do not control'. Your compliance officer and external counsel should size that number; this post is not legal advice and the specifics need a lawyer and your auditor.

4. Revenue the system blocks

The hardest number to produce and the most persuasive one. Walk through the last twelve months of commercial initiatives that were descoped, delayed, or declined because the platform could not support them. A new payment method the acquirer offered but integration was quoted at nine months. A B2B customer who wanted a webhook feed you could not provide. A pricing model finance proposed that the billing engine could not represent. Each of these has a revenue number attached. Add them up. This is the number the CEO cares about and the number that gets modernization onto the capex plan.

The sequencing choice: strangler-fig vs bounded rewrite

Once the do-nothing cost is sized, the choice is not 'refactor vs rewrite' in the abstract. It is a choice between two sequencing patterns, each with a distinct risk profile.

Engineer in Abu Dhabi logistics center points to strangler-fig boundary on whiteboard between legacy and modern system screens
Choosing strangler-fig or bounded rewrite is a sequencing decision, not an architectural preference — the boundary on that whiteboard is where the budget argument lives.

Strangler-fig increments

The strangler-fig pattern — named by Martin Fowler after the Australian tree — routes new functionality through a modern layer while the legacy system continues to serve existing paths, with scope migrating outward slice by slice until the legacy core can be decommissioned.

Good at: maintaining service continuity, spreading spend across budget cycles, preserving institutional knowledge embedded in the legacy system, producing demonstrable wins every quarter. Lower execution risk per increment.

Bad at: handling cases where the legacy data model is itself the problem. If the core issue is that your customer entity was designed before you had B2B customers, or your product catalogue cannot represent bundles, strangling around the model keeps the model. You will be three years in and still translating between the old shape and the new one at every boundary. Strangler-fig also tends to leave a residual legacy footprint that never actually dies, because the last 15% of functionality is always too niche to justify migrating on its own.

Bounded rewrite

Not a big-bang replacement. A bounded rewrite replaces a defined subsystem — the billing engine, the policy administration core, the fulfilment orchestration layer — in one coordinated effort, with a hard cutover and a decommissioning date for the legacy component.

Good at: resolving data-model problems, eliminating the comprehension tax in the rewritten scope permanently, producing a system where feature delivery time drops by an order of magnitude. A UAE financial services engagement on a Solaris + Oracle stack with ~$2.1M in annual maintenance modernized over 14 months in three waves and cut feature delivery time from 11 weeks to 9 days with a 16-month payback. That kind of step-change does not come from refactoring.

Bad at: tolerating scope drift, surviving an unclear specification, or working when the business cannot free subject-matter experts for the duration. A bounded rewrite that loses its boundary becomes a big-bang rewrite, and big-bang rewrites have a long documented history of failure.

The decision rule

If the read-vs-ship ratio is below 60:40 and the legacy data model is fundamentally sound, strangler-fig is the right call. If the ratio is above 60:40 or the data model itself blocks revenue, a bounded rewrite of the affected subsystem is the right call — even though it looks more expensive on the quote, because you are comparing a one-time cost to a recurring tax.

How to phase the spend so wave one funds wave two

The CFO's resistance is rarely to modernization in principle. It is to writing a cheque for a 24-month programme whose benefits land in year three. The answer is to structure the programme so the first wave releases enough recurring cost to fund the second, and the second funds the third.

A workable three-wave shape for a seven-to-ten-year-old enterprise core:

  1. Wave 1 (months 0–6): infrastructure and the highest-cost integration. Move the workload off the most expensive piece of licensed infrastructure (typically the database or the application server) and rebuild the single integration that consumes the most engineering time per quarter. This wave is chosen for payback speed, not architectural purity. The infrastructure cost reduction and the engineering hours freed become the funding source for wave 2.
  2. Wave 2 (months 6–14): the revenue-blocking subsystem. Whichever subsystem is blocking the most commercial initiatives — pricing, product catalogue, customer model, billing — gets rewritten against a modern data model, with the strangler-fig routing new traffic while the legacy subsystem is decommissioned on a hard date. This wave is chosen for revenue impact and has to be sold to the CFO as a revenue investment, not a cost reduction.
  3. Wave 3 (months 14–24): the compliance and reporting surface. API monitoring, SDLC evidence, transaction-monitoring outputs, audit trails. This wave is chosen to close the regulatory gap and is often the easiest to fund because the cost of not doing it is a supervisory finding.

Each wave has to produce an auditable outcome: a decommissioned licence, a migrated integration, a subsystem cutover, an audit-ready report. 'Platform improvements' as a deliverable does not survive a CFO review, and should not.

What the business has to supply

No external partner can execute this programme on their own, and any vendor who says otherwise is pricing in a disappointment. The business has to supply three things:

What this costs — and what would turn the range into a quote

Enterprise legacy modernization programmes in the UAE market run across a wide range for reasons that are mostly knowable in advance. The drivers that move the number most are the age and documentation quality of the current system, the number of upstream and downstream integrations in scope, the regulatory surface (a CBUAE-licensed entity carries a materially heavier evidence burden than an unregulated retail group), the availability of the business subject-matter experts described above, and whether the target architecture is a pure cloud rebuild or a hybrid that preserves some on-premise components.

As an illustrative shape — not a quote, and dependent on every assumption that follows — the Sherdil case cited above involved a UAE financial services firm with roughly $2.1M in annual maintenance costs on a Solaris + Oracle stack, modernized over 14 months in three waves, achieving 48% infrastructure cost reduction and a 16-month total payback period. Your programme will look different. A retail group with a ten-year-old ERP and six integrations is a different problem from a logistics operator with a bespoke .NET monolith and twenty integrations, which is a different problem from a DFSA-regulated firm with a transaction-monitoring gap.

Three specifics would turn a range into a defensible quote: a documented inventory of the integrations in scope with their current contract and throughput data, two weeks of read-vs-ship measurement on the engineering team currently maintaining the system, and a decision from the compliance function on whether the regulatory outputs are in scope for wave 1 or wave 3. With those three inputs a partner can price the first wave firmly and the remaining waves as a shaped estimate. Without them, any number offered is a guess wearing a suit. For UAE-based programmes specifically, this is the conversation to have with a modernization partner in the region; more broadly, the transformation and legacy-modernization capabilities overview covers how the waves are typically scoped.

The argument for the CFO meeting, in six lines

  1. Our engineers spend X% of their time reading and working around the current system versus shipping new capability. The empirical benchmark for a healthy codebase is below 40%; ours is Y%.
  2. That ratio costs us Z engineering FTEs per year in absorbed capacity, plus N business FTEs across ops and finance working around what the system cannot do.
  3. It is also blocking £R in identified revenue initiatives over the next 18 months, itemised in appendix A.
  4. Under CBUAE / DFSA current requirements we have the following documented evidence gaps, which our compliance officer has sized as a probability-weighted exposure of £E.
  5. A three-wave modernization programme, with wave 1 scoped to release recurring infrastructure and engineering cost that funds wave 2, pays back inside T months on current assumptions.
  6. The alternative is to continue paying the tax, and the tax compounds at 8–15% a year while the compliance surface tightens.

That is the argument. The numbers have to be yours, measured, and defensible. The framework works whether the eventual answer is strangler-fig, bounded rewrite, or a mix — and it works because it moves the conversation from architectural preference to unit economics, which is the only ground on which a CFO will sign.

Frequently Asked Questions

How do we know if our legacy system is bad enough to justify a rewrite instead of a refactor?

Measure the read-vs-ship ratio for four sprints: how much engineering time goes to reading code, investigating, and workarounds versus shipping new capability. Below roughly 60% read-time, refactoring still retires debt faster than it accrues. Above it, refactoring sprints subsidise the debt and a bounded rewrite of the worst subsystem is cheaper over 24 months. Pair the ratio with a review of whether the data model itself blocks revenue — if it does, refactoring preserves the problem.

What does legacy modernization typically cost for a UAE enterprise?

The range is wide because the drivers vary: age and documentation of the current system, number of integrations in scope, regulatory surface (CBUAE or DFSA licensure materially increases the evidence burden), availability of business subject-matter experts, and whether the target is pure cloud or hybrid. Published UAE case studies show programmes recovering cost inside roughly 16 months when sequenced in waves that release recurring spend early. Turning a range into a quote requires an integration inventory, a read-vs-ship measurement, and a compliance-scope decision — the three specifics a partner needs before pricing is more than a guess.

How long does a legacy modernization programme take?

Published UAE engagements have delivered three-wave programmes in roughly 12–18 months, but duration is driven by scope, integration count, and whether the business can ringfence subject-matter experts for the duration. A single bounded-rewrite subsystem can land in 4–8 months; a full core-system programme with compliance evidence runs longer. The sequencing matters more than the total: a wave 1 that pays back inside 6–9 months changes the CFO conversation because wave 2 is no longer net new spend.

Is strangler-fig always safer than a rewrite?

No. Strangler-fig has lower per-increment risk and preserves continuity, which is why it is the default recommendation when the legacy data model is sound. But if the data model itself is the problem — the customer entity, the product catalogue, the billing representation — strangler-fig preserves the problem at every boundary and the programme never finishes the last 15%. In those cases a bounded rewrite of the affected subsystem, with a hard cutover and a decommissioning date, is both safer and cheaper over the full horizon.

What CBUAE and DFSA requirements affect the modernization decision directly?

The CBUAE Open Finance Regulation C 7/2023, effective April 2024, requires licensed institutions to maintain a documented API monitoring framework, SDLC controls for operational resilience, and board-level technology risk accountability. The 2024–2027 National AML/CFT Strategy raises the bar for transaction-monitoring integrity. Legacy systems that cannot produce auditable API logs, evidence SDLC controls, or generate real-time CTR/STR outputs in required formats are a documented regulatory gap rather than a technical inconvenience. The specific exposure in your case needs sizing with your compliance officer and external counsel — this is not legal advice.

Sources & further reading

Get one practical guide a week

Costs, AI tools, partner selection — written for people who make the decision. No spam, unsubscribe anytime.

Thanks — you're on the list. One practical guide a week, nothing else.

Building something in Software & Technology?

CodeNicely partners with founders and tech teams to ship AI-native products that move metrics. Tell us about the problem you're solving.

Talk to our team Book a 30-min call