Generalize function bodies to statements