Remove redundant path spec.