Clean up team instance URLs