A medical device includes an elongate member having a plurality of flexibility features and a basket having a plurality of legs. The elongate member and the basket are formed from a single piece of a material. The flexibility features are formed by removing first portions of the material to increase flexibility of the elongate member. The legs are formed by removing longitudinal portions of the material.