Moves iterating by public properties into forEachPublicProperty