There are a few hero related settings in Gameplay Constants, however I did not find something that would solve this.
I might have missed something though so you might want to take another look.
My guess is that it's hardcoded in the melee map triggers though.