New helper class

Hi julien

This is a very small change, just an abstract function which saves some code when pipelining promises