Factory method matches the original ReactPHP factories