Move as_tuple method to DataPackage class.