1 remove by hand. 2/ spray with organic spray such as pyrethrum. 3/ nematode treatment. 4/ grow plants such as nasturtium to attract black fly away from beans.
AS long as your plants are healthy and you can water them on a regular basis I wouldn't worry too much about them. They never seem to do much damage as long as you have strong plants.