Removes unpublish context menu option since it's not currently implemented, cleans up some code.