I can't think of anything that would easily reduce those lines, or factor them out.  I don't think something like this is that big of a deal, though.