Refactor manage issue feature to dry out code.