A simple hook for recursive_betti.