As the tin says, find a way to after World Wars I or II have Bavaria be its own nation separate from Germany. Bonus points if it lasts to current day.
Mayhaps after the end of WWII, one could see an independent Bavarian Republic as a neutral buffer state much like Austria, or you could have the Allies follow the Roosevelt Plan, or a variation of it.