Remove duplicate line from code