remove factory.h