histfactory: add apply_snapshot