You can't do that. The first statement has to be the call to the primary constructor. Separating config string or config object in methods wouldn't be possible either so it has to be done in one statement. I agree the formatting is weird though.