Tidy up unnecessary lines.