Split monolithic build.scala into smaller files