Fixed some formatting and put duplicated code into the configure_old_pcb() function.