Reversing nitrogen fixation