move cloud provisioning logic to dedicated method