Me doesn't like that either, but it was the easiest way to get that working with the legacy UI, having in mind that it will hopefully go away soon, `toggle_repository` is probably better name, I will update that