https://aescripts.com/groups-and-toggles
Pre-composing layers in After Effects is unavoidable at times, but now you can access pre-composed layers to create mattes, rearrange layer order, embed mattes in MOGRTs, or add multiple MOGRT versions in one file all while keeping your project procedural.