Optimize the sbt tasks by combining them together.