private string ParseOwner(Dictionary<string, string> properties) { var owner = FindByKey(properties, key => key.Contains("owner")); if (owner == null) throw new InvalidOperationException("Cannot find project owner."); return NormalizeOwner(owner); }