protected function _removeOptions()
    {
        $options = [];
        if (!empty($this->_plugin->composer['extra']['options'])) {
            $this->loadModel('System.Options');
            $options = $this->_plugin->composer['extra']['options'];
        }

        foreach ($options as $option) {
            if (!empty($option['name'])) {
                $this->Options->deleteAll(['name' => $option['name']]);
            }
        }
    }