Abstract importer logic--first refactor