Remove get_gist duplication

As noted in #89, the logic for fetching a gist has been present twice.