public function createFromField($field, $value = null)
    {
        if (!is_array($field)) {
            return new NullField;
        }

        if ($value !== null) {
            $field['value'] = $value;
        }

        return $this->resolve($field['type'], $field);
    }