Macro for ripping just top level parent configs

I was wondering if anyone is aware of a macro (or workflow) that could rip a part into its separate configs but leave derived configs as configs of the new parts?

This has all stemmed from my inability to reverse a sketch offset in 2015... Think its defo time I upgraded

Cheers

SolidworksApi macros