Remove useless contracts