dot-droplevels_as_needed function

Drop missing levels