Use $field->value_type instead of Bugzilla::Field::Choice->type($field)