Minor: move batch spilling methods to lib.rs
to make it reusable
#1520
This job succeeded
Loading
lib.rs
to make it reusable
#1520