Split out the functions in bunch.c into separate files.