replaced likely_context reference counting with explicit ownership