Factor builder into a module so it can be debugged at the console.