public function remove(string $name): Aggregator
    {
        foreach ($this->elements as $index => $element) {
            if ($element instanceof NamedInterface && $element->getName() == $name) {
                unset($this->elements[$index]);
            }
        }

        return $this;
    }