Rename factory mode to factory mode.cpp