Revert "Fix duplicating of elements when uploading two elements of same name."

This reverts commit e7f317cf1e31976e9832d19fb3f46a53a49604f1.