Factor general filter code into Core
Factor out the repair filter code shared by Search & KV into Core.
Pass in ring, extract chash
Rather than extracting the chash outside of core, pass the ring and
extract the chash there.
Move common repair stuff into core
Place all common repair functions between Search and KV in the