remove circular and duplicate gem dependencies