Updated factory method name from getXxx to newXxx.