Replace duplicate codes with cwwf counterpart