[PATCH v4 04/34] component: Move struct aggregate_device out to header file