Setup the code to flatten cmap format 4.