Added factory support to be able to get callbacks for broker as well as node requests