Extracted thread storage into a framework-specific pluggable mechanism