Get rid of unused replace_dependency method.
Get rid of more unused InternalTarget methods.
Refresh the classpath between scala build chunks.