new batching logic for formation/layer destroy