Use negative reinforcement. My friend’s uncle used to carry around a small vile of sulfur in his pocket when he had a bad habit that needed breaking. Every time you give in, or forget and crack them, pull out the vile, open it, and take a whiff. This sort of thing worked for uncle Mike.