Reorder a factor's levels without losing its other attributes
Source:R/utils.R
relevel_preserving_attributes.Rdfactor() returns a value carrying only levels and class, so it
silently drops the variable label that get_raw_labels() and the plot
titles read. Everything factor() does not set itself is copied back.