Cleanup: Extracts PROTOCOL constant and adds missing properties in StreamProcessor.