I believe you recover in stages, different things help you to get over it, ie changing where you live, what you do, things that you associate with the behaviour etc.
These were all good stages for me over the years and the final nail in the coffin of the old habits was becoming a mum and having a bad health scare.
When I was pregnant with my first I had a dodgy mole removed from my breast. Because I didn't actually have that babe in arms and the full maternal instinct hadn't kicked in, I was so chilled about it ' Oh it will be fine, it's nothing'.
Actually it could have been very not fine, but the point is it didn't worry me unduly.
I then had my children and had a breast lump.
Completely different story - I went into a black hole for the 3 months it took to have the op to remove it and have, finally, the all clear. And this black hole was there, not because I was scared of dying, but because I was absolutely terrified of leaving my children without me.
I am an older mum as well and since then I'm on a mission to feed by body as much of the good stuff as I can to keep it going as long as poss. for their sakes.
I've been doing this for a long time now and I eat a lot, but I eat all of the right stuff and have found a place I am happy with.
The thought of what I did do to my body in those dark years scares me, but as I said, it seems to have recovered.
So, maturity and motherhood were my saviours.
Are you an older or younger mum?
I also find it helps to think of whatever you put in your mouth, what happens to it. Think of it being a strong body that needs good things to fuel it. Also, I can still remember those horrible, horrible thoughts after overeating and chucking up or the extreme hunger pangs (even after 20 years!!) and I never want to have them again. So when tempted, try all these tricks.
As we know, it's all in the mind isn't it!