Boundaries and detachment are necessary steps in getting out. Practicing detachment meant I was more aware of what was going on. I began to prepare myself mentally and emotionally for leaving.
I don't think there is a one size fits all kind of approach to this - everyone's circumstances will be different. There are some sticky threads that deal with this - I think - in more general terms. For practical advice, seeing a solicitor is essential.