remove define(factory) in wraped judgement