In many cases, it can be more effective to replace your bad habit than to merely try to eliminate it.
The beautiful thing about habit substitution is that you can build a good habit and break a bad one at the same time.
Sources
-30 One-Sentence Stories From People Who Have Built Better Habits