cleans up data_snapshots_view
Abstracts method to determine data source nid from machine name