Refactoring of the sampling of some MCMC steps.