Per class you can add packages, which will be propagated through the document tree. This makes sure no unneeded packages are added to the document.