fix indent of generated factory file