Upgrading for nitrogen removal under severe site restrictions