Converts a method body to single a return form.