Use same changeset resolver for hidden and visible changesets
Created by: eseliger
This is the same pattern as we are going to use for changesetSpecs in https://github.com/sourcegraph/sourcegraph/pull/12215. To unify the implementations, I migrated this use to that pattern as well (and saves us code duplication).