I agree with all of the above. Bedja seems to just need to be acknowledged: "OK, Thank you for good guarding - Now I see it is no real danger", he gets told so and he stops, even if sometimes I have to repeat it.
With time they can probably also learn from our tone of voice and behaviour what is nuisance barking vs. acceptable alert.
Bedja also has considerable prey drive, if he starts getting too intense seeing a squirrel I command "sit", as if the squirrels are "mine" and I saved the lives of several critters with this "technique", even off leash. For some reason "sit" is much more effective than "Off" or "Leave it". So, it's about who's in charge, of danger or whatever.