shell: Refactor common parts of bond and bridge settings.

And arrange checkboxes vertically.