Cleanup `_.sample` and add missing dependency.