Remove last use of deprecated Formula#recursive_deps

Fixes #19107.