State legislation affects farmers in many ways