Split out generated code into ast files.