`_deprecate_loss_and_score_funcs` is required in `sklearn.linear_models.Ridge` and replacing that by `check_scoring` is not so easy because `_deprecate_loss_and_score_funcs` is allowed to return `None` and in that case `Ridge` computes its own error metric.