Small refactoring for ceph-disk-{prepare|activate}