Scientists take the ‘toot’ out of beans