First stab at refactoring dac_bringup. Untested.