Removes parentheses if they are redundant.