Split up monolithic build.scala