Refactored IssueRepository