Split the parser-related build code into its own file.