moving factories into insight module