[Cleanup] Remove deprecated GenericReferenceElements*.