public function stripRoutingInformation()
    {
        if (!$this->hasRoutingInformation()) {
            return $this;
        }

        while (true) {
            // Remove the start of the array until an empty part is found.
            $part = array_shift($this->parts);
            if (!$part) {
                break;
            }
            $this->routing[] = $part;
        }

        return $this;
    }