FYI: Beer or Wine?

Is it how the cereal grain is “worked” that makes the resulting liquid a beer or a spirit?