I decided to create an action for this
I tested it on several of my layouts and I am pretty sure it works. If you do decide to use it...try it on a copy of your layout first, please. Just to be sure
Oh, I created this for the layered layout. You can download it
here.