Refactor CoxPHModel class to encapsulate conceptual operations in protected methods.