This is the flip side of staying cash flow positive. Just as cash flow is more important than profits when it comes to surviving, undertaking a full rewrite of code, while theoretically long-term beneficial, could have the effect of causing you to run out of cash.