/**
  * {@inheritdoc}
  */
 public function removeField(FieldInterface $field)
 {
     if ($this->hasField($field)) {
         $this->fields->removeElement($field);
     }
     return $this;
 }
 /**
  * {@inheritdoc}
  */
 public function removeField(BaseFieldValueInterface $field)
 {
     if ($this->hasField($field)) {
         $this->fields->removeElement($field);
         $field->setSubject(null);
     }
     return $this;
 }