Removed useless calls to createfactor.