private function getMaxPosition()
    {
        $fullTableName = $this->getResource()->getTable(self::CATEGORY_FILTER_CONFIG_TABLE);
        $categoryPositionSelect = $this->getConnection()->select()
            ->from($fullTableName, [])
            ->columns(['category_max_position' => new \Zend_Db_Expr('MAX(position)')])
            ->where($this->getConnection()->quoteInto('entity_id = ?', (int) $this->category->getId()));

        return (int) $this->getConnection()->fetchOne($categoryPositionSelect);
    }