Accept both modules and strings as hook options.