Remove EntitiesDescriptor elements from the sources, so that only the EntityDescriptor elements are included. Remove duplicated entities.