There is a saying - a fed bear is a dead bear. Bears will keep coming back to food sources around homes and get bolder unless fear is instilled in them.
When I lived in Colorado, my bear gun was a Mossberg with five rounds loaded in this order - bird shot, rubber buckshot, bird, 00 buck, slug. Basically, 'How nasty do I need to get with this problem bear?' First shot was a warning shot, and then you start targeting the bear with two non-lethal and two lethal. Had to get to two once - was out camping and a bear came into my campsite (remote, not a state park campsite). Fired a warning shot in the air, and the bear didn't flich - he had no fear of humans or guns. Second shot was the rubber buck into his ass.
Net result - bear now has fear of humans (ran pretty fast after that arseload of rubber buck). Probably improved his chance of survival.
Oh, and the rubber buckshot? It was given to me by a sheriff's deputy in my county. THEY understand predator problems.
Someone I know dealt with a bear with the old Mr. Bear, meet Mr. Birdshot.
One trial learning occurred.
More than can be said for many people.
Hey, sounds like you know what you are doing when it comes to discouraging pesky bears!