Or better yet, how do you build another to displace it?
I'm looking specifically at the ones that prey on human "bugs" - casino, betting, but especially porn.
Maybe not even end an industry, but place some ethical limits, such as when someone starts harming himself you don't let him ruin his/her life, or when other people are exploited (i.e. human trafficking).
Has anyone had similar curiosities?
You can't easily change the cue and reward, but you can change the routine.
Cues can be really tricky. Something like pornography is rarely triggered by horniness. It's often things like fatigue, stress, being alone in a room, seeing someone in a certain type of clothing.
Reward can also be very tricky. For pornography, it's often an orgasm. For gambling, it's winning money. It's not easy to replace these rewards with say, a game.
What you can do is change the routine easily. For example, someone triggered to look at porn might instead look for his wife. Someone triggered to gamble could trade stocks or cryptocurrency instead.
There's also always been a "boredom" black hole that has been displaced by newspaper, TV, IRC, Netflix, forums, Facebook, Reddit and so on. These things run on the same cue/routine and are easy to displace.