protected function set_namespace() {
        if ( empty( $this->options->instance ) || ! empty( $this->options->namespace ) ) {
            return;
        }

        $namespace = $this->options->namespace;
        $namespace = explode( '\\', $namespace );
        array_pop( $namespace );

        $this->options->namespace = implode( '\\', $namespace );
    }