Clean up SwarmHandler logic.