Cleaning up reference and archive pieces