Remove needless groups