Refactor Region to do its own merging and grouping.
Remove obsolete code.