Remove useless members and functions