Rewrite preamble to configuration section.