Ditto on the plastic bags and pre-rebuild test ride.
In my case, I place the loose and bagged parts in separate boxes for each project. I tend to have more than one project going at a time and I don't want to mingle parts (that may not be the best idea, but that's how i am). Any bike that is salvaged for parts only gets stripped, and the parts are placed in with other spares.