Move external import rules to top of the output data