```ruby
module NetSuite
  module Records
    class RecordRefList
      include Support::Fields
      include Support::Records
      include Namespaces::PlatformCore

      fields :record_ref

      def initialize(attrs = {})
        initialize_from_attributes_hash(attrs)
      end

      def record_ref=(items)
        case items
        when Hash
          self.record_ref << RecordRef.new(items)
        when Array
          items.each { |ref| self.record_ref << RecordRef.new(ref) }
        end
      end

      def record_ref
        @record_ref ||= []
      end

      def to_record
        {
          "#{record_namespace}:recordRef" => record_ref.map do |rr|
            rec = rr.to_record
            rec[:@internalId] = rr.internal_id if rr.internal_id
            rec[:@externalId] = rr.external_id if rr.external_id
            rec[:@type] = rr.type if rr.type
            rec
          end
        }
      end
    end
  end
end
```

Refactor RecordRefList to use Support::Sublist
user
```ruby
module NetSuite
  module Records
    class RecordRefList < Support::Sublist
      include Support::Records
      include Namespaces::PlatformCore

      sublist :record_ref, RecordRef

      def to_record
        {
          "#{record_namespace}:recordRef" => record_ref.map do |rr|
            rec = rr.to_record
            rec[:@internalId] = rr.internal_id if rr.internal_id
            rec[:@externalId] = rr.external_id if rr.external_id
            rec[:@type] = rr.type if rr.type
            rec
          end
        }
      end
    end
  end
end
```
assistant