Refactor action.