Use enum CodecID where appropriate.