Green’s Dictionary of Slang

cracker factory n.

[crackers adj. + SE factory; pun on SE]

(US) a psychiatric institution.

[US]J. Rebeta-Burditt [bk title] The Cracker Factory.
B.E. Lott Becoming a Woman 335: In The Cracker Factory, referred to earlier, Cassie is [...] an alcoholic and depressed housewife being treated in a private ‘psychiatric rehabilitation facility’.
F.S. Clarke Cinefantastique 58: Walter has escaped from the cracker factory with revenge on his warped mind.
C. Hart Charmed 41: You belong in the cracker factory in a rubber room and a strait- jacket!