Move build configs to build.json, refactoring