Swapped out a couple of @settings.instance_variable_get(:@table)'s for OpenStruct#to_h's.