Clean up export_func