MAINT: remove obsolete functions
MAINT: move get_history_log_likelihood into a more generic module