Reduce scope of some functions in cst_cg_map.c as appropriate.