Move before:swapOut before removed from the region

Fixes #1785