Refactoring to break out the tree-walking logic that calculates adjusted test variable indices when producing a node's combined filter.