Factored object field iteration out into a utility.