Make all datasrc cleanup functions table aware