Move KVSlice to its own class / file