Implementation of the Weighting factor as an alternative to the IndependentCompositeFactor