I actually have it that way on a Specialized Enduro.
It is low and out of the way.
You will destroy the Bafang before you will hit the battery.
I always thought a battery with a semi circular end that would fit flush against the Bafang would be attractive, low and out of harms way.
You will...