Factor issue and merge request services

Same code, less lines, less repetition.