Remove duplicate codes