There’s a more generalizable work on this recently for those expecting more. https://github.com/leochlon/hallbayes