That's an interesting way to think about it, I always saw it as distancing yourself from a dependency. It's much easier if you replace bad habits with constructive ones
It's not always necessary to quit entirely either, some bad habits aren't that bad if done in moderation