Refactored content stream operations to a new class so we can resuse them for appearance streams.