generators::internal0::generate() refactoring.