Refactoring to extract the slicing of a partial test vector to make a filter input.