Replace the program body with generated nodes.

Cleaner way of replacing the class constructor node.