Good idea, we have a number of ToXContent implementers that have toString() implementations duplicated similarly.