Refactor code generation for builtin-void operators