golfed the remove_symbol function

While extracting the logic of the remove_symbol function i had the urge to golf it, and here's the result. If you like it, feel free to merge, if not, i won't mind. :)