Add the ability to crop a composition to its layer bounds. Useful for when you pre-comp and don't want to inherit the original comp bounds, but use the layer bounds instead.
Alternatively, add a pre-comp dialogue option to crop to layer bounds when creating a pre-comp.
Similar to what this script does:
https://aescripts.com/auto-crop/