Variable page code cleaning for statistics and harmonizations