Bad habits need replacement, not just resistance
Removing a habit leaves a gap. The plan works better when you define what you will do instead, make the old behavior harder, and decide what happens after a slip.
Use the if-then plan
Read the plan before the trigger usually appears. You are trying to make the better action obvious before the craving starts negotiating.