Centralize duplicate code between transforms/moveAssets an transforms/moveAssetsInOrder