remove code dulication for request params