Are you packing it in a solid box (Bike Box Alan type thing)?
If so it’ll be fine with minimal interference. When I packed my (borrowed) road bike I whipped the seatpost out without thinking about it then thought SHIT! but fortunately the battery was actually inside the seattube!
Rest of it I just left although it had plenty of packing, dropout spacers and an anti-crush pole in it. Worked fine at the other end.
The only slight issue I had was the wire routing at the front end which made twisting the bars really awkward. Was terrified of ripping the wire out of the junction box.