Do not remove a fence until you know why it was put up in the first place.
Bad habits generally evolve to serve an unfulfilled need: connection, comfort, distraction, take your pick.
Attempting to remove the habit and leave everything else untouched does not eliminate the need and can simply lead to a replacement habit that might be just as harmful or even worse. Because of this, more successful approaches often involve replacing a bad habit with a good, benign, or less harmful one—or dealing with the underlying need.