Loop over OBO files instead of repeating code