Bake objects to layers with new Native GH components?

This post talks about how to assign layers and other attributes to objects. Rhino 8 Feature: GH1 Is Now More Than Just Geometry!