Gets option's data needed for detection

@param {String} optionName
@returns {Object} Object with option's name, link to `detect()` method
and default value for the case when nothing can be detected
function getHandler(optionName) {
  var option = require('./options/' + optionName);
  if (!option.detect)
    throw new Error('Option does not have `detect()` method.');

  return {
    name: option.name,
    detect: option.detect,
    detectDefault: option.detectDefault
  };
}