clean and refactor the level and level group property and classes