Change factory method mechanism.