Moved formatting code to within PartExporter.