Replace invalid id spec contexts with shared example