Combining enum, struct, and callback in one method; refactoring method body generatio...