Compiler optimizing.

Extract all dependencies to the topmost.
Remove repeated modules when combining.