Co sleeping

We are totally screwed.

Started co sleeping when she was teething because we felt bad and it wasn't just plain easier. Now I need her to be in her own crib just because it's safer and I don't know how to break this habit.

I'll put her in once she falls asleep at night and she will just wake up a couple hours later and be completely hysterical.

Any advice ? TIa