Custom Software

Legacy Software Modernization for Small Business: Rewrite, Refactor or Replace?

Black-and-white photo of a woman typing on a vintage computer terminal

Since your order system was written, you've moved offices, doubled your staff and replaced every vehicle you own. The software is the one thing in the business nobody has touched, mostly because nobody dares.

It's fifteen years old. It holds every customer, price and order the company has ever taken, and the one person who understands it is starting to talk about retirement. If that sounds familiar, you already know why legacy software modernization for small business owners keeps coming up at the leadership meeting and keeps being put off. ("Legacy" is simply the industry's word for an old system you still rely on.)

Most of what you'll read on the subject is written for large enterprises with a transformation team and a multi-year budget. A business with 20 to 200 people has neither. You have a few people who know the system, a budget that has to come out of normal cash flow, and a business that can't pause while the work happens. This guide is written for that situation.

The system is too important to break and too old to trust. But the choice isn't between living with it forever and one terrifying rewrite. There are four options, they can be mixed, and the safest route replaces one part at a time. This guide covers the warning signs, each option, the phased approach and how to move years of data without losing any.

Seven signs an old system has become a risk

Old isn't the same as bad. Plenty of fifteen-year-old systems do their job perfectly well. What matters is whether yours has started to cost you, or could stop you operating. Look for these:

  1. One person understands it. If they resign, retire or fall ill, so does your ability to fix anything.
  2. It runs on something unsupported. An operating system or database that no longer receives security updates, or hardware you can't replace.
  3. Small changes take weeks. Adding a field or a tax rate breaks something elsewhere, so nobody dares touch it.
  4. It can't talk to anything. Staff retype orders into the accounting software, and "integration" means a spreadsheet export.
  5. It only works in the office. No access from a phone, a second site or home.
  6. Reports need a specialist. Getting a simple sales figure means asking the one person who knows how to pull it out of the database.
  7. Nobody has tested a restore. Backups may exist, but no one has ever proved the system can be rebuilt from them.

Two or more of these, especially the first two or the last, and it's time to act. If none applies and the system is supported, backed up and doing all you need, leave it alone. Replacing software because it looks dated is an expensive way to buy a nicer screen.

The four options, from lightest to heaviest

Consultants have a dozen names for these. In plain terms there are four, and they differ in how much they change and how much they risk.

OptionWhat changesWhat stays as it isRough effortThe catch
Move it as isOnly the machine it runs on: a supported server or the cloudThe software, and every one of its limitsDays to weeksYou've bought time, not a fix
Improve it piece by pieceThe inside of the program, tidied and updated a part at a time (developers call this refactoring)What staff see and do each dayMonths, in small stepsNeeds the original program code, and someone who can still read it
Rewrite itEverything: new custom software takes over the old system's jobYour process and your dataMany monthsYears of unwritten rules hide in the old code
Replace it with a productThe software, and some of the way you workYour data, once it has been moved acrossWeeks to a few monthsYou fit the product, not the other way around, and you pay every month

If moving it as is looks right, our cloud migration guide covers the practical steps. If you're weighing a rewrite against a packaged product, build vs buy software gives you a way to decide.

Legacy software modernization for small business: which option fits?

You rarely pick one option for the whole system. Break it into its parts (order entry, stock, invoicing, reports) and ask three questions of each.

  • Is this part special to us, or standard? If every business in your industry does it the same way, a product will do it better and cheaper than anything you could commission. For a small business this question matters most, because the custom budget is small. Save it for the parts no product could handle.
  • Can the code still be worked on? You need the source code (the text programmers write, which the running program is made from), a technology that developers still use, and someone able to read it. Three yeses point to improving it. Any no points to rewriting.
  • Is the real danger underneath it? If the software behaves but the machine or operating system is the risk, move it first. That takes days or weeks and lets you decide the rest calmly.

Most businesses we talk to end up with a mixture: move everything somewhere safe straight away, hand the standard parts to a product, and rebuild only the part that's truly theirs.

Why the all-at-once rewrite so often goes wrong

The instinct with a creaking system is to commission a complete replacement, build it for a year and switch over on a single weekend. It's the cleanest plan on paper and the most dangerous in practice, for three reasons.

The old system knows things nobody remembers. Fifteen years of decisions are buried in it: the rounding rule on invoices, the customer type that gets a different credit limit, the report the bank asks for each quarter. They're written down nowhere but the code, and you find the missing ones after launch.

The business doesn't stand still. While the new system is being built, the old one still needs changes. Now you're paying for two.

The switch is all or nothing. Every member of staff changes every habit on the same Monday, and if something's wrong, there's no easy way back.

None of this means never rewrite. It means never do it in one piece.

The phased approach: replace one part at a time

The safer method keeps the old system running and takes work away from it bit by bit. Developers sometimes call this the strangler approach, after a vine that grows around a tree until it has taken its place.

Replacing it part by part

  1. Make it safe A tested backup, a supported machine and the source code in your hands.
  2. Map what it does List the parts, who uses each, and the rules hidden in real invoices and reports.
  3. Pick the first part Something useful, low-risk and loosely connected. Reporting is a common choice.
  4. Build it alongside The new part shares data with the old system through a bridge that copies records between them.
  5. Run both and compare Same inputs, same outputs, for a few weeks. Then switch that part off in the old system.
  6. Repeat The old system shrinks until what remains can be retired.

Take a charter bus company with 40 vehicles, running quotes, bookings, driver rosters, vehicle maintenance records and invoicing on one aging desktop program. A phased plan might go like this.

In month one the system moves to a supported server and a test restore is done. Next comes a reporting screen that only reads the old database, so nothing can be damaged. Then quotes and bookings become a web app the sales desk can use from anywhere, feeding bookings into the old system. Driver rosters and maintenance records follow, one at a time.

Invoicing never gets rewritten at all. It goes to standard accounting software, because nothing about it was special. The whole program might take 12 to 18 months, but the sales desk has something better by month four.

Moving the data without losing any

The data is worth more than the software. Programs can be rebuilt, but fifteen years of customers, prices and balances can't. Data migration (moving records from the old system to the new) deserves its own plan and more time than anyone first allows.

A safe data move

  • Take a full backup and prove it restores before touching anything
  • Decide how far back you need to go, and check record-keeping rules with your accountant
  • Clean first: merge duplicates, close dead accounts, fix inconsistent codes
  • Write down which old field goes to which new field, and what happens to data that doesn't fit
  • Rehearse the move on a copy, never on the live system
  • Check 30 records by hand, including the strangest ones you can find
  • For the final move, stop all entries in the old system first, so nothing falls into the gap
  • Keep the old system readable, but locked, until at least one year-end has passed

The step people skip is reconciliation, which simply means proving that both systems agree. If the old system says you have 4,312 customers who owe $186,400 between them, the new one must say exactly the same. A migration can carry every record across and still lose the decimal places, the dates or the links between records.

Reconcile totals, not only counts

After every trial move, compare the number of records and the money totals: balances owed, stock value, year-to-date sales. If any figure differs, even slightly, stop and find out why before going further.

The bill, in money and in your people's time

A real figure depends on the size of the system, so here are the shapes, not the prices. Moving a system as is takes days or weeks, and replacing a standard part with a product is mostly migration and training. A rewrite costs what any custom build of that size costs, plus extra for uncovering the old rules and moving the data. We go through those costs in our guide to what custom software costs.

The cost people forget is time. The colleagues who understand the old system are the ones who must answer the developers' questions and test each new part, and they're also the ones keeping daily operations going. Plan for several hours a week from them, for months.

Set that against the cost of doing nothing. Say the system fails at month-end and 30 office and depot staff can't work for a day. At $25 an hour for eight hours, that's $6,000 in wages for a day of nothing, before a single delayed invoice or lost booking. And old systems rarely fail only once.

This kind of work sits between custom software development and cloud hosting, and our advice is the same whoever takes it on: spend the first money on safety, not on new screens. For smaller companies, our page on custom software for small businesses explains how we keep releases small and decisions in writing.

What to do about your old system this month

You can lower the risk long before you choose an option.

  1. Test a restore. Ask whoever handles your IT to rebuild the system from last night's backup on a spare machine. If they can't, that's your first project. Our guide to data backup and disaster recovery shows how.
  2. Get hold of everything. The source code, the database, the installation files, the passwords and any documentation, stored somewhere you control.
  3. Write down what only one person knows. An hour a week with them and a notebook is cheap insurance.
  4. List the workarounds. Every retyping job, export and manual check, with the minutes each takes. That's your case for the budget.
  5. Split the system into parts. Mark each one special or standard.

With those five things done, any developer you speak to can give you a grounded opinion instead of a guess. And if the worst happens before you've decided, you'll still have a business on Monday.

Frequently asked questions

How long does it take to modernize an old business system?

It depends on the option. Moving a system as is to a safer machine or the cloud usually takes days or a few weeks. Replacing a standard function with a packaged product takes one to three months, mostly spent on data and training. A phased rebuild of a core system commonly runs 12 to 18 months overall, with the first useful part live within the first three or four. Treat these as guides, not promises.

Is it cheaper to rewrite old software or keep maintaining it?

Add up what keeping it really costs each year: specialist fees, hours lost to workarounds and retyping, sales you cannot take on, and the price of a day's outage. Compare that over three to five years with a phased rebuild. Often the cheapest route is neither extreme. Move the system somewhere safe, hand the standard parts to a product and rebuild only what is particular to your business.

What if we no longer have the source code for our old system?

Then improving it is off the table, because developers cannot change what they cannot read. You still have two routes. The program can usually be moved as it is to a safer machine, and the database can nearly always be read even when the code is lost, so your records are not trapped. Before giving up, ask the original supplier, search old backups and check what your contract said about ownership.

Can we keep using the old system while the new one is being built?

Yes, and in a phased approach you must. The old system carries on running while new parts are built beside it, and staff move across one task at a time. The rule that keeps this safe is a single owner for each kind of data. At any moment, either the old system or the new one is where customer records are edited, never both, so the two cannot drift apart.

B+

BPlus IT Editorial Team

Practical guides from the team that builds custom software, websites, mobile apps and the BPlus School Management System.