Extracting the work that's thread dependent from the work that will also be done when using task queue. Bug: webrtc:10365 Change-Id: I648796fe016c966c731c9b7f85d2a871c1f2a349 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/131241 Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27454}