Remove un-needed dependencies.