Removes unecessary dependencies