Move config munging to helper method