Separation of logic in statistics model