Remove restriction on setting default factory only once.