Now that we have class names in the metadata table, we could try to load each constant and drop the view if it fails.
What should we do if another view depends on the view about to be dropped? We should not cascade as that would cause the metadata table to be out of sync. Sorting and dropping the leaves first should work fine though.
We should be able to run this from the ActiveSupport.on_load :active_record railtie to clean up automatically.