public function detach(ReaderInterface $reader)
    {
        if (($key = array_search($reader, $this->readers)) !== false) {
            unset($this->readers[$key]);
        }

        // Clear any cached groups
        $this->groups = [];
    }