Refactor out initConfig method

probably around 20 keystrokes, rest was IntelliJ