Generate classes of static factory methods