Merge factories files to just one file