Refactoring LocalTieWidget.