Remove the keepDeclarations option from Schema.toCodecStringTree.
keepDeclarations
Schema.toCodecStringTree