Fix refactoring custom controller actions

My problem was to refactor custom actions.

I wasn't able to do it.

If there is another way, please comment.

Test + Patch in PR.