github: delete code by introducing an abstract GhResource