Maybe we should rename it to `remove_small_components`? I don't think "connected" is necessary here and it would make the function name a bit shorter...