Refactoring GitHub synchronisation