Refactor Sandcastle examples to use two new helper functions: addToolbarButton and addToolbarMenu.