Use templating for processNestedMembers