refactoring of failed_ontology_versions