[RazorTemplate] Cleaner mechanism for overriding code generation
[RazorTemplate] Minor cleanup