That seems reasonable to me. I imagine if we add more cocoa specific rules, there will be more rules that need this sort of string manipulation and so it makes sense to share it.