Factor out serial, load_balanced, and round_robin.