Refactor the intent action define