Factor out map-traversal-dispatch-guide