refactor code generation of Rebond framework