Use Class::Accessor::Grouped instead of deprecated Class::Data::Accessor.