Remove unnecessary dependences, which is copied from a template.