Factorize creation of dynamic className (and ensure that's always the same)