Removing nitrogen compounds