private static IssueField UpdateLabels(RemoteIssue issue, IEnumerable<Action<IList<string>>> labelOperations)
{
var newLabels = LabelFormatConveter.From(issue).To(labelArray => new List<string>(labelArray));
foreach (var operation in labelOperations)
{
operation(newLabels);
}
return IssueField.CustomField(CustomFieldId.Labels) <= LabelFormatConveter.From(newLabels).ToJira();
}