Expand ternary expression into proper if … else
Transform let block into a method