```\nfunction _revokeRole(bytes32 role, address account) private {\n    if (hasRole(role, account)) {\n        _roles[role].members[account] = false;\n        emit RoleRevoked(role, account, _msgSender());\n    }\n}\n```\n