2 thoughts behind that:
* that was not the subject of this patch, and this function is called in a few places, so I didn't want to change so many things
* I generally do agree, except this creates a new object for each call and this might be undesirable in some situations. (and I didn't want to analyze this at this time)