Added support for discard_nil_segments :key1, :key2