It is wrapped, but then, after calling `flatten.compact` it's unwrapped again. So yes, it is needed here or some other changes are needed.