Spaghetti code will never be eradicated.
Spaghetti code accumulates where the value flows through in a system.
For the user, mucking with it is all downside and little upside.
Spaghetti code in a context tends to only ever accumulate.
You can't hope that a customer moves their spaghetti code over to your platform, or to create a clean platform where users won't need to ever do any spaghetti code.
The play is not to replace spaghetti code, it's to be the place where a customer's spaghetti code lives.