Remove duplicate lines from merge