search: make toRepoOptions not depend on resolver
Created by: rvantonder
Stacked on https://github.com/sourcegraph/sourcegraph/pull/31127.
This is the only method in the job creation logic that relies on resolver. After this it'll become possible for toSearchJob
to not rely on the resolver and rather just a small number of args
Test plan
Semantics preserving, covered by tests