Unreal Engine Var console variable.
landscape.RemoveEmptyPaintLayersOnEdit [value]
Set via the console (~) or in DefaultEngine.ini / DefaultGame.ini.