For projective, non-uniruled varities, the birational automorphism group iscan also be given a scheme structure in. The reference is "Hanamura: Structure of birational automorphism groups, I: non-uniruled varieties". In particularAs one expects, the automorphism group is thenwill be a subscheme of that. There might be more straightforward treatments, dealing with the automorphism group only and maybe for all schemes generally.