Remove some dead code, params, structure fields, types

Opportunistic cleanup of deprecated stuff.