In DefaultCodegen. some conditions use `this instanceof RustServerCodegen` and we would like to remove these if possible.