Avoid too many class creation