The process labelled B is the conversion of inorganic nitrogen from organic products to atmospheric nitrogen. This process is called denitrification.
Denitrification is a process where nitrate is reduced to molecular nitrogen through a series of intermediate products. This processed is carried out by bacteria called denitrifying bacteria.
Denitrifying bacteria are an important part of the nitrogen cycle.