Simplify, optimize the factory search code.
Simplify, optimize the factory search code.

rTreutlein/atomspace,AmeBel/atomspace,rTreutlein/atomspace,misgeatgit/atomspace,misgeatgit/atomspace,misgeatgit/atomspace,misgeatgit/atomspace,AmeBel/atomspace,AmeBel/atomspace,AmeBel/atomspace,rTreutlein/atomspace,AmeBel/atomspace,misgeatgit/atomspace,rTreutlein/atomspace,rTreutlein/atomspace