Extraneous line removal