Suggest breaking out this case statement into a function similar to what `determine_handoff` used to be. Makes it possible to trace if needed + easy to write eunit tests against if we ever care.