Refactor Issues controller