Great advice! I often find myself doing the negative here: trying to eliminate a bad habit or behavior (and failing) rather than focusing on the new habit or behavior I want to replace it with.
Just focus and work on new good things, old things automatically sidelines. It's my own experience. Stopped many bad habits and bad patterns with this strategy. Create new habits, create new momentum, create new pattern. choose your battle.