npm, pypi: Split original_artifact parsing out of artifact_to_revision_id
We will need it independently in a future commit