Is it better to rewrite an old system from scratch or to keep improving it?
It is usually more reliable to improve the system and change it in parts: old code contains rules that are easy to lose in a rewrite, and the business does not have to maintain two systems for long. A rewrite is justified when the platform no longer allows moving forward, and even then it is better done in stages.
More in the guide to legacy system modernization.