protected function outputEditFields()
    {
        return function ($term) {
            /** @var \WP_Term $term */
            foreach ($this->repository as $field) {
                if (method_exists($field, 'termGet')) {
                    $field->termGet($term->term_id);
                }
            }

            echo $this->factory->make('themosis.taxonomy.edit', [
                'fields' => $this->repository
            ])->render();
        };
    }