Reordering pigsties and hunters to avoid mobile computation