restructure respawn planning to be a bit more readable