Gets rid of defined-id Omeka references.