Refactoring get config out of build