Making node-path-filters more reusable