DEV: Remove the use of stubs. (PR #14142)

Follow-up to 419d71abcb814b14c15918190405428bfb543548

GitHub