gemspec: Remove repeated dependency code