Collapse factories into one