Skip to content

Field Guide

Selling a rewrite (and saying no to one)

A CFO does not buy code quality. A CFO buys lower cost, lower risk and more options. The same test that makes a rewrite fundable is the one that lets a CTO turn one down.

Slide: code quality crossed out, and the three things a CFO buys: cost, risk and options.

Martin Fowler puts the difficulty plainly: "customers and users cannot perceive the architecture of the software." Neither can a finance committee. His advice about internal quality is that "we should only approach it as an economic argument."

That cuts both ways. The pitch for a Gen 2 has to be economic. So does the refusal.

What the CFO hears

Engineering says The CFO hears Say this instead
"The code is a mess" "We built it badly. Pay us to build it again" "A pricing change takes nine weeks. Here is where the time goes"
"The framework is outdated" "The engineers want new tools" "Vendor support ends on this date. After it, no security patches"
"It will not scale" "A problem we might have someday" "At current growth we reach the measured limit in the third quarter"
"Nobody wants to work on it" "A morale issue" "Two people can change billing. If one leaves, billing changes stop"

The right-hand column is not spin. If the sentence there cannot be written truthfully, with a number or a date, the case is weaker than the team believes.

Cost, risk and options

A proposal has to move at least one of three things:

  • Cost. What the system costs to run and to change. Fowler's summary of why internal quality matters is that it "lowers the cost of future change." Show that cost in dollars and hours.
  • Risk. What could happen, how likely it is and what it would cost: end of vendor support, a key person leaving, an outage, an audit finding.
  • Options. What the business cannot do today. A market it cannot enter, a kind of customer it cannot sign, an acquisition it could not integrate.

Options are the hardest to price and often the strongest argument. Name the specific deal or plan that is blocked.

The cost of doing nothing

Doing nothing is the baseline every other option is compared with. Build it over three years:

  1. Run cost. Hosting, licenses and support contracts per year.
  2. Change cost. Engineer hours spent on Gen 1, at a loaded rate, with the trend.
  3. Incident cost. Outages, credits paid and hours lost.
  4. Dated risks. End-of-support dates and contract renewals.
  5. Blocked revenue. Deals lost or not bid, with names.

Then be honest about the result. If doing nothing costs $300,000 a year and the replacement costs $2,500,000, the answer is no, and it is better to find that out before the meeting. The rewrite cost calculator does this arithmetic. Include the months of paying for both systems, covered in Running two systems at once.

What the overrun numbers say

A CFO will ask how often projects like this go wrong. There is no good statistic for rewrites alone. The best published numbers cover IT projects in general, and they are worth quoting carefully.

  • Flyvbjerg and Budzier, 2011. Writing in Harvard Business Review, Bent Flyvbjerg and Alexander Budzier analyzed "a sample of 1,471 IT projects." The average cost overrun was 27%. The average is not the finding. "Fully one in six of the projects in the sample was a Black Swan," with a cost overrun of 200% on average and a schedule overrun of almost 70%.
  • The same authors, 2013. A study of 1,355 public sector IT projects, averaging $130 million in spending and 35 months, found that "the typical project had no cost overruns and took on average 24% longer than initially expected." Again the risk was in the tail: 18% of projects were outliers with cost overruns above 25%. It also found that "every additional year of project duration increases the average cost risk by 4.2 percentage points."
  • The Standish Group's Chaos reports. These are widely quoted for low project success rates, and they are contested. In 2010, Eveleens and Verhoef tested Standish's definitions against their own project data in IEEE Software and concluded: "The Standish figures didn't reflect the reality of the case studies at all." Do not build a case on them.

Use these for the shape of the risk, not as a forecast. Most projects land near their budget and a minority miss badly, and longer projects carry more cost risk. That is the argument for a range instead of a number, for stages, and for kill criteria.

Offer more than one option

A yes-or-no proposal invites a no. Put three on the page, each priced the same way: leave the system alone and fix what is dangerous, replace one slice and measure it, or rewrite. The 7 Rs widen the list when buying a product is possible, and the estimating page covers how to give each a range. The person approving it is then choosing, which is their job, instead of judging whether engineers can be trusted.

What a credible proposal contains

  1. The problem in one sentence, with a measure. The authors of Patterns of Legacy Displacement write: "It is vital for an organization to agree the outcomes they want to achieve when tackling legacy."
  2. The options considered, including doing nothing and refactoring in place. The four options page is the checklist.
  3. What ships first, and when. One slice in production inside a quarter. Fowler's case for the gradual approach is that the business can use the new components as they arrive, "allowing earlier return on the investment."
  4. Staged funding. Ask for stage one, not the program: $400,000 for the router and the first two slices, not $3,200,000 for everything. Each stage ends with something in production and a decision to continue.
  5. The full cost. The overlap, the data migration, the cutover, training and decommissioning. Leaving these out is how a proposal loses trust at the first overrun.
  6. Kill criteria, written before the money is spent. The first slice is not live by a named date. A stage runs over budget by an agreed margin. The measure in item 1 has not moved after three slices.
  7. What stops. Features that will not ship while the team is busy. Joel Spolsky's warning about a from-scratch rewrite was about exactly this: "You are throwing away your market leadership."
  8. The end. The date Gen 1 is switched off, because that is when the savings start. See Killing Gen 1.
  9. A range, not a number, with the two or three things that would move it.

Staged funding is not a negotiating tactic. Of the plan to build a full replacement and then switch over, Fowler writes: "we've seen this simple-sounding plan go down in flames most of the time." A CFO who has funded one of those before will want the stages. The strangler fig pattern is what makes them possible.

Saying no to a rewrite the team wants

The team is not wrong that the code hurts. Fowler again: "Even the best teams will have cruft in their software." The question is whether a rewrite is the cheapest cure.

  1. Ask for the same proposal. Hold the team to the standard a CFO would. Many requests end here, honestly, when the cost of doing nothing turns out to be small.
  2. Separate the complaint from the remedy. List the five things that hurt most. For each, ask for the smallest fix. Spolsky: "Even fairly major architectural changes can be done without throwing away the code."
  3. Say what would change the answer. A vendor end-of-life date, a measured limit, a customer that cannot be served. Write the triggers down and review them yearly.
  4. Fund something. A no with nothing attached says the pain does not count. Give a fixed share of capacity to the worst module, with a measure of success.
  5. Count the tokens. Dan McKinley's rule of thumb: "Let's say every company gets about three innovation tokens." A rewrite onto a new stack spends several at once. Ask what else the company wanted them for.
  6. Say it once, in person, with the reasons. Then put it in writing. An ambiguous no turns into an unofficial rewrite.
  7. Watch for the prototype that keeps growing. Either it earns a proposal or it stops.

When not to use it

Sometimes the right move is not to pitch one.

  • A refactor or a slice would fix the problem. Pitch that; it is easier to approve and to stop.
  • You cannot say what is wrong in business terms. Gather the evidence first.
  • No one can staff Gen 1 and Gen 2 at once. A proposal that assumes it will fail in month three.

How it goes wrong

  • The pitch is about quality. It is approved out of fatigue, with no measure, so nobody can tell later whether it worked.
  • One big number. It was set low to win approval. Trust goes with the first overrun.
  • No kill criteria. Money already spent becomes the reason to spend more.
  • Scope grows after approval. Every stakeholder adds a wish, which is the second-system effect.
  • The savings are counted from cutover. Gen 1 is never switched off, so they never arrive.
  • A no with no alternative. The strongest engineers leave, or rewrite it quietly.

The Netscape case file is the rewrite Spolsky was writing about, and the clearest picture of what "what stops" can cost.

What to take from it

  • Translate every engineering complaint into cost, risk or options, with a number or a date.
  • Price doing nothing first. Sometimes it wins.
  • Ask for a stage, ship a slice, and earn the next stage.
  • Write the kill criteria while everyone is still calm.
  • A good no names the triggers that would turn it into a yes, and funds a smaller fix.
  • Not sure which side of the table to be on? Should we rewrite it? asks the questions.

Sources

  1. Martin Fowler - Is High Quality Software Worth the Cost? (May 29, 2019)
  2. Martin Fowler - Strangler Fig (revised August 22, 2024)
  3. Ian Cartwright, Rob Horn and James Lewis - Patterns of Legacy Displacement
  4. Joel Spolsky - Things You Should Never Do, Part I (April 6, 2000)
  5. Dan McKinley - Choose Boring Technology (March 30, 2015)
  6. Bent Flyvbjerg and Alexander Budzier - Why Your IT Project Might Be Riskier Than You Think (Harvard Business Review, September 2011; authors' copy) - 1,471 IT projects: average cost overrun and the one-in-six outliers
  7. Alexander Budzier and Bent Flyvbjerg - Overspend? Late? Failure? What the Data Say About IT Project Risk in the Public Sector (2013) - 1,355 public sector IT projects: schedule overrun, outliers and the effect of duration
  8. J.L. Eveleens and C. Verhoef - The Rise and Fall of the Chaos Report Figures (IEEE Software, 2010) - the published criticism of the Standish Group's Chaos figures

Last updated November 29, 2026.