PYTHON-6031Ready for Work

Consolidate non-IO code in _AggregationCommand into shared base class

All methods except {{get_cursor}} can be lifted out of {{_AggregationCommand}} and its related classes into shared base classes. Note that {{_CollectionAggregationCommand}} and its ilk cannot be easily lifted due to multiple inheritance, but the class's small size makes it an acceptable duplication.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.