v.21.11Backward Incompatible Changes

Function bayesAB removed; request to reinstate.

Function bayesAB is removed. Please help to return this function back, refreshed. This closes #26233. #29934 (alexey-milovidov).