Cleanup configuration code