Utility function.
Remove bbox calculation and use aux. function.