Refactor configureWidgets method for each Activity class.