OAK-9724 Handle duplicate functions gracefully in indexing