Clean up board creation code.