Distinguish between truly indispensable functions and dependencies that have arisen due to habit, missing knowledge or old choices. Concretely map out connections, data formats, licenses, processes and skills.
Then practice exporting, recovery and alternatives before there is a crisis. An exit plan that has never been tested offers little certainty. Sometimes full migration is not immediately feasible, but open formats, modular architecture and a second implementation route can already improve the position.