moved factories into factories directory