ensure that issue is archived when issue was hooked; refactor; #63