Eliminating common ulcer-causing bacteria with treatment courses that include antibiotics may help lower the risk of developing stomach cancer.