Remove unwanted lines.