How the F do you get the steering knuckle off the balljoint stud? Im afraid I'm going to bend the stud pressing it out whith the knuckle still on, and I cant keep the stud straight unless I remove the knuckle. I tried beating it with a hammer, but no luck there

Does the knuckle need to come off first or should I just press the balljoint out with the knuckle still attached to the stud.