Refactoring assemble dependencies.