de-nest let in clauses
convert let - in blocks to where blocks