Refactor issues_spec