Authors:

Once you understand the power of stimulus control, you can use it to your advantage by changing the stimuli in your environment and avoiding undesirable ones; or, if that's not possible, by filling your consciousness with thoughts about their less tempting aspects.

Jonathan Haidt (2006). “The Happiness Hypothesis: Finding Modern Truth in Ancient Wisdom”, p.18, Basic Books
Once you understand the power of stimulus control, you can use it to your advantage by changing the stimuli in your environment and avoiding undesirable ones; or, if that's not possible, by filling your consciousness