Copied from original providers/default.rb.