Refactoring github helper commands