Well you can blame it a little bit. A recent article (link below) explains how researchers have found that your environment is crucial to ingraining or breaking behaviour and habits.
“People, when they perform a behavior a lot — especially in the same environment, same sort of physical setting — outsource the control of the behavior to the environment,” Neal says.
To explain this point, the Author gives the example of when you get in your car. As soon as sit in your car, without conscious thought you will automatically go through the same routine to start the car – you can be thinking about something else, having a conversation – doesn’t matter, your body is responding to the environment of the car, so automatically behaves in a certain way.
The same applies to smoking. If you walk past the doorway where you always used to smoke with your buddies, you will find yourself wanting to smoke – as the environment has triggered the habit.
“About 45 percent of what people do every day is in the same environment and is repeated.”
“To battle bad behaviors then, one answer, Neal and Wood say, is to disrupt the environment in some way. Even small changes can help — like eating the ice cream with your non-dominant hand.”
What an exercise like this would do is to give you time to stop and think - ‘do I want to do this?’ You then have the opportunity to stop a bad behavior or habit. Another exercise would be to start a new habit in a new environment. For example if you always used to smoke outside, but have switched to vaping, start a new habit by vaping in a different area.