Makes SegmentGroup and SpanGroup inherit from Group.