Refactoring server config checks