Extract config out of main

- main.go was getting bloated
- we want to add validation to config without bloating main.go further
- [#82968904]