Refactor Channel codes.