This sounds very similar to an extensive script package that has been made available in this thread:
I’ve been using it pretty effectively recently, and suggest anyone brave enough to experiment with some advanced functionality try it out on a test database. Though I would love to have a native feature that does this, I’m happy for the flexibility of scripting and the willingness of users to share their ideas.