Union avoidance and elections