Refactor to use shared_context to clean up deals and patterns.