Refactor out a shapes_in_region method