In addition to the home-remedies suggested by Marzipanherz - the warm bottle is a good one - there are pharmacological therapeutic options out there.
Gas-X, Mylicon, others 1
Simethicone (an inert mixture of polymers stabilized with silicon dioxide)
Gas can become trapped in small bubbles in the gut. Simethicone is known for its ability to collapse bubbles by forming a thin layer on their surface.2 This decreases the volume of gas in the GI tract, but it's unclear if this has a therapeutic effect.
Another option is to diminish the creation of new gas if your gas is being caused by a particular kind of food, in this case, foods containing the trisaccharide raffinose.3 Foods containing raffinose include things like beans, cabbage, brussels, sprouts. We can't digest this on our own, so it ferments in our stomachs and causes gas. The compound α-GAL in BEANO breaks raffinose down to galactose, which we can digest.
1: A more comprehensive list of simethicone containing drugs
2: Mechanism of antifoaming action of simethicone.
3: Wikipedia: Raffinose