Refactor remaining CPPCG primitives to own modules.