Move sheet name generation code to model