We seem to be doing this in a number of places.  I suggest making an implicit RichInterval somewhere with a union method.