Use the extracted batches/execution/cache package and remove extracted code
Created by: mrnugget
Counterpart to https://github.com/sourcegraph/sourcegraph/pull/27070
Created by: mrnugget
Counterpart to https://github.com/sourcegraph/sourcegraph/pull/27070