Refactor dc to c2d