(Sorry didn't spot this before)    Could refactor it to something that is similar to [this](https://github.com/ceph/ceph/pull/21385/files#diff-3218aa223ce1c378579e8578ec8e1429R113)?  Also the const `rbdToDelete` is very irritating for the editing part.