[provisioners] Refactored some APIs