Set variable as class_var or meta using type_hints.
Use var name from hints, if provided.
Refactor domain_from_fields.