Move config load logic to utils