Reduce complixity? of github plugin