MAINT: use a new generic function for Markov chain likelihood