Refactor bbox
This patch is extracted from !260 (merged)
The tests pass, so I will rebase the other patchset on top of this
Edited by Paolo Borelli
This patch is extracted from !260 (merged)
The tests pass, so I will rebase the other patchset on top of this