Move cpp.launch code to module