Learning lessons in maternity from a recent Supreme Court ruling