It was in _basic_provisioning function. I copied is here. Probably this should be done as a separate refactor update?