Remove dead code and cleanup imports in tools+sbt-plugin+build.