After "Law v. Canada" (1999) the question of whether dignity was affected was key to a section 15 analysis. In "R. v. Kapp" (2008), the problems with the dignity analysis were recognized and the dignity analysis was jettisoned. The Court established a two-part test based on the one found in "Andrews v. Law Society of British Columbia" (1989): (1) Does the law create a distinction based on an enumerated or analogous ground? (2) Does the distinction create a disadvantage by perpetuating prejudice or stereotyping?