DRY formattedLine helper

Brackets are evil, so let's trade 4 for 1. Also, the longest line is much shorter now.