Remove duplicates in URI definition with hash key