refactoring provisioning agent code.