Same with arab cousin marriage,female circumcision(all dated from pre-islamic time).
Like chinese female foot-binding(not exactly dated truely ancient though) was given up pretty fast a century ago. Our choice