refactoring for issue_create task