Would it be an automatic revocation of green cards and H1B Visas if those holding them voted? Would that lead to an obvious cause for deportation?
Registering to vote is a felony.
Commit a felony and get deported. The laws are pretty simple. Only need to have the laws enforced. (Sometimes deportation happens after the prison sentence has been completed.)