[DAG] Refactor ReassociateOps - no functional change intended.