#2 - fixed type-hint on `buildFactory`