Remove extraneous lines