private function getFilter($keyCondition)
    {
        $filter     = clone $this->expr->condition;
        $conditions = $keyCondition instanceof Composite ?
            $keyCondition->getParts() : [$keyCondition];

        foreach ($conditions as $condition) {
            $filter->remove($condition);
        }

        return $filter;
    }