Green’s Dictionary of Slang

abstain from beans v.

[Plutarch (AD 46?–AD c.120), Of the Training of Children, ‘Abstain from beans; that is, keep out of public offices, for anciently the choice of the officers of state was made by beans’]

[1920s] to desist from politics.