Reorganise the styles to provide better grouping of related styles.