Simplify code for auto_npar.