Refactor the code that maps a cue to a region.

Update RegionBoundingBox to be able to detect if it should add
a cue to itself or not.