Substantive editing and rewriting
Substantive editing takes your manuscript and identifies the flaws in its structure, whether that is the general flow of the text, or matter that has been included in several different places. This level of editing may involve extensive reconstruction, moving passages, deleting others, and rewriting those which are not easily comprehensible for your audience.
Rewriting takes a text that you have already used and restyles it for a different audience or to fit a different purpose. For instance, you might want to have a piece that was originally written for an adult market reorganised to appeal to children.