static operator() in Factory class doesn't work?