generator: drop deprecated, outdated and unused code.