Revert "Revert "Remove duplicated cocode""

This reverts commit 128a6e0f4910a65e3f0f07b162768d8f759cce31.