Restructured action handlers into object actions.