Refactorized handle-unauthorized protocol method on all supported backends.