Refactored level handler and level session schema