An excruciatingly painful ruling from the Court of Appeal