Reformat headings.