Remove duplicated code block.