I had really excessive gas and bloating and was able to cut it WAY down by cutting out wheat and corn completely and only having maybe 1 serving of another grain per day (rice, oats, etc). I also quit drinking sodas and cut out most sugar and artificial sweeteners.
Maybe try just cutting out one thing at a time.