Reformat Codebook variable section