Add createAll method to factory