Remove redundant curly braces around a hash