Recombine drawTrivialLine and drawNonTrivialLine, using a strategy to separate out...