Common Utilities reused by codegen implementations