Code cleanup to CoxPH.