Script for "unnest" components

Is anyone aware of the existence of a script to unnest components?
Thanks in advance.