You could solve this other ways. Build a new better monolith and have a reverse proxy route between them and slowly update and move routes over. You will get through a rewrite slowly one bit at a time.
If you keep the same database schema this should generally work pretty well.
I migrated a terribly written web app this way, it worked pretty well.