Clean up provisioning code