Can you update this to use the new `.to_openstruct` method introduced in #398.