Refactor JIRA related classes and functions.