Convert WixBundleNumberOfApplyPhases variable to IBootstrapperApplication::OnApplyNumberOfPhases.