cleanup(generator): eliminate dead code. is! dynamic is always false.