Create method action available in all controllers?

is there possibility to extend main controller class with some action methods that could be available in all controllers I will create later ? I think about such scenario that all of the controllers in backend use change status of the record from published to not listed. Do I need to create an actionPublish in every controller ? or there is a way to create one action that could be used in all of them ? Just thinking about not to duplicate code if it’s not needed.
Thanks for help

Don’t know if its the right way but I created one controller that extends the main controller and contains the shared code.
My other controllers then extend from this shared controller.

Thank you. I’ve been thinking same way, but also have some doubts if it’s a right way :confused: