Baby only sleeps in crib with pacifier

So I read that your supposed to remove the pacifier when baby falls asleep but my baby wakes right up once it falls out his mouth and only when he’s in his crib...

Trying to end this co-sleeping 😩😩😩

Any suggestions would be greatly appreciative 😊