Create ontologies method cleanup