[PATCH v2 15/29] domain_conf: Move format of hyperv features into a function