Remove some dead code, params, structure fields, types