Remove lot of unused code.