Ravayah wrote that beer of grain has no concern of bishulei goyim. As the Beit Yosef wrote, the Rambam learned that if most of the mesibah is Israel it is permitted, from Shmuel and Avelat. Lechem Mishneh challenged this, but the language of the Gemara and the Tosafot show that the wine was brought before them both.