Cowboys to hire recently fired head coach as new defensive coordinator