Planarity stratification of Hurwitz spaces