Remove duplicate line of code