Replace deprecated GenericReferenceElement by ReferenceElement.