I would keep the function clean, so I'd rename the old function to _getActions() and call it if needed from getActions()