Code consolidation

Removed ss_deleteshard and ss_upgradeshard functions and moved their
code into the event handler.