make RevokeRoleCommand work with any object