Remove specific factories from incorrect file