Compact the AppliedRegion.apply() code