The bet your making is you never need to do the refactor. The amount of absolutely garbage code that has never needed to change ever is easily worth a wait-and-see attitude.
It’s worth it until you need to. Then you have a nightmare on your hands because you’re never allowed to rewrite it.
Waiting until you need to rewrite it sounds like the perfect time to rewrite it.