Remove duplicate code block