Factor lazy Factory import code.