Moving from bed sharing

Has anyone moved their baby into their own room from bed sharing? My baby still wakes up in the middle of the night and is a big snuggler but I think making the move will help my marriage. All tips are welcomed. Thank you!