framework component should stub out the required types, but make the related ivars nilable for services that leverage these types. Services that entirely depend upon them, like the debug commands, could likely leverage skip_file macro.
The bundle extension, and ext/ directory logic, should ensure those components are installed before wiring up services related to them.