Pull jira processing out into separate functions