remove unused (or indirect) dependencies