Fixed invalid warning of replacing earlier defined schedulerFactory