Adds logic for moving enhancements out of paragraphs in ReferentialText#toPublishables.