I saw a 16mm film on the galvanic series in 8th grade shop in 1964.
I bid some military contracts in the 1980s that had MIL-STD-889 dissimilar metals requirements.
In 1984 I build the world's fasted filling big bathtub. I had galvanized and brass adaptors in series to get 1/2" and 3/4" copper pipe connected to ball valves that looked like 1/2" or 3/4" holes. But every time I turned on the water the first gallon of water was all rusty. I had to take it apart and make it without the steel parts.
So I had no excuse when I put some brass pillars in rifles in 2002. Later I realized my barrelled action was a sacrificial anode.
I am now not afraid to put Aluminum pillars in rifles, and let the pillars be sacrificial while protecting my barrelled action.