Extract config reading into helper method