I was a fairly heavy drinker until about 1977 but I gave up overnight., All you need is enough motivation. I fell off a train -- and it wasn't even the train I was supposed to be on. I figured one warning was enough.
That's probably a bit too dramatic to suit your purposes but different habits require different techniques., It just takes something to break the cycle. Once you do that it tends to becomes less of a habit and more of a choice.