ENH: Reg Tune: extract the analysis run logic.