[scheduling] Finish integration of cost model code.