Refactor Surrounded Regions