Make origin_visit_upsert take an origin dict instead of int.
That's the sensible format, and the one we already use in the backfiller.