We cannot generate subroutines in generated code under current grammar. But it is desirable to have them.