refactoring drug code importer