Simplify dict-to-object conversion