When a hosted feature layer is created on ArcGIS online, the data goes with it, stored within ArcGIS Online. When you create a hosted feature layer on ArcGIS Enterprise, does the data get stored on the Datastore? Is this the only place the data can be reside?