Chai, I have been hearing of people who soak beans before cooking, hearing this from a westerners surprised me and afirm the claim.
When I want to cook beans, I boiled it on low heat for like 5-10minutes, put off the gas and let it rest for like 30 minutes before resuming back to cooking.
With that, the beans get done faster and flatulence is removed.