Begin by understanding what must keep working. Business rules, downstream integrations, data semantics and recovery requirements shape a safer modernization sequence.
A rewrite is justified when the current design cannot support the business rules you must keep. It is a poor answer when the problem is only delivery pace.