Moved recycle bin element remove into restoreElement function to make it more general
Signed-off-by: Alessandro Tundo <alessandrotundo94@gmail.com>