Cleanup config handling.