Removing the direct use of "numberOfGaussPoints" in most places, as the integration rule is allowed to use a different number. Always ask the integration rule instead. This is even more vital when using composites.