Moves profile write outside of repetitions, consistent across different collections