[ABRT PATCH 1/5] factor out GIO channel helper method