Remove repeating lines