Optimize project directory structure, avoid libraries replication