tidy the styles structures, ready for persistence