What are some ways that diazotrophs protect nitrogenase from O2?

What are some ways that diazotrophs protect nitrogenase from O2?