SERVER-137850ClosedFixed

Split up large change stream setup function

This change refactors the previously long function {{DocumentSourceChangeStream::createFromBson()}} so that most of the work is moved to helper functions. Determining the resume token, configuring the v2 change stream reader and updating change stream metrics are now all delegated to small helper functions in the anonynmous namespace. Semantics and behavior should be fully preserved.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue
Change streams
Labels
Tags and classification

No labels assigned.