Refactored record field duplicate code to use nested filtering functions instead of manually walking accumulator lists.