Update commandFactory.hpp