The main success factor in my opinion was becoming single and staying single, as well as restructuring my life in general, especially how/who I socialize with.
It's pretty easy to do what's right for you when you go solo.
The process isn't really different than a drug addict trying to go clean and avoid relapse. It's all about the friends and environment, you have to change it all.