Part of #118145. For computation of factors, use the new API functions that handle more than one vertex at a time.