Implement subtree filtering using fields