Remove duplicate functions in StgCmmUtils, use functions from CgUtils