type Factory<T> = Box<dyn FnOnce(&BuildCtx) -> T + Send>;
Type-erased factory closure producing T from a BuildCtx reference.
T
BuildCtx
struct Factory<T>(/* private fields */);