Break factories into separate files.
Create identity factory to receive me data from server socket.