def _refactor_notes(self, header):
        descriptions = []
        index = self.index
        self.remove_lines(index, 2)
        indent = get_indent(self.peek())
        paragraph = self.get_next_paragraph()
        descriptions.append(indent + '.. note::')
        descriptions += add_indent(paragraph)
        self.insert_lines(descriptions, index)
        self.index += len(descriptions)
        return descriptions
Refactor the note section to use the rst ``.. note`` directive.
dataset/ETHPy150Open ContinuumIO/ashiba/enaml/docs/source/sphinxext/refactordoc/enaml_decl_doc.py/EnamlDeclDoc._refactor_notes