remote: drop free_refspecs() function