removing duplicate factories