Once a bear learns the location of a beehive, it will keep coming back for more. So the best defense against bear predation is avoiding them in the first place.