Your understanding of how to manipulate the different kinds of Node Types will determine how sophisticated and automated you can make your stencils to be. You can so customize your stencils is such a way that you eliminate redundant code and files that need to be deleted every time you generate your code.
For example, using the External folder node type, you can remove lines from generated files, or even replace strings. This can be adapted to whatever database schema you are using.