It didn't need to be within the definition block of Berkshelf::Location::ClassMethods. It's common to require your dependencies at the top of the file unless you need something evaluated before that particular file is.

A good example is this

```ruby
# something.rb
module Something
  require 'something/thing'
end

# something/thing.rb
require 'something/other_thing'

module Something::Thing
end
```

The requires would have been placed in this order because if we required `something/thing.rb` before the module Something definition we would actually get an undefined module Something.