classes and defined resource types should generally be loaded from modules. They should never be defined inline in site manifests.