Moved several functions between HelperFunctions and FittingUtilities