Create commandfactory.h