Currently we have a bunch of plugin dependencies included to AppContextProvider. It could be replaced with KibanaContextProvider:
import { useKibana } from '../../../../../../../src/plugins/kibana_react/public';
Also some of this dependencies could be removed from ActionsContextProvider and AlertsContextProvider, because all of plugins which embedding Alerts and Actions UI also use KibanaContextProvider.