Reset factory before build