Rewrite origin_head.py as a normal function instead of an indexer
We stopped using it as an indexer years ago, so it does not make sense
to keep this class around.
Additionally, replace the weird dict (needed by the indexer interface)
with a CoreSWHID (now possible, as it doesn't need to be JSON-like)