Moved import code into it's own module so things outside of the ImportExportHandler can use it (like a setup_new_collection function).