You can write `detect({}) { |config| ...` instead of doing this.