Added the remap_cube_dimensions utility function to handle removal and
addition of new dimensions.