If you really wanted to do that habit or get rid of a habit, you just would.
Most of you live high agency lives and are making decisions every day that are creating your life exactly how you have decided to make it. A lot of stuff feels "hard" but you just don't want it bad enough.
One example is how easy it is for 99% of women to quit social drinking when they get pregnant. These same people, without such a clear and strong motivation, would probably "slip up" and struggle with 9 months of sobriety.