Refactor out the call the finalCallback in the processNext method to private method outside the callback