the studs unthread, just like bolts. you can use a stud puller, or if there is a star on the end use a star bit, or put two nuts on them, tight the nuts to each other and use the inner nut to back out the stud..

then replace it with whatever proper length hardware you want.