Move Github logic to separate module