In response to your last sentence - I completely agree. If you ever notice that there’s some behavior that you often perform in response to some difficult thought or physical pain - carefully consider whether that habit is helping you or hurting you.