The herbal ingredients help optimize liver function by enhancing its ability to synthesize bile, which may reduce the likelihood of bile becoming too concentrated or sluggish, both of which contribute to gallstone formation.