Move builders from symbols to the CodeGenerator class.