Generating factories for Project and User