These two methods are pretty similar in terms of implementation, but they take slightly different arguments. It should be possible to unify them. Related discussion: https://github.com/envoyproxy/nighthawk/pull/493#discussion_r478423275