Clean up nested-if logic

The code in ceph-deploy was a little scary with like seven levels of nested-if logic. This should make it a bit more maintainable for future work.