Remove unneeded methods, fields, imports