split removing and pruning remotes in two