Align module construction with primops