Split configuration function into small functions