Finalized the implementation that removes the imports before merging the
source code (to deal with conflicting imports)