Made all factory methods static.