Cleanup excess lines.