NEST refactor, pass resl to ParamMap functions