This feels pretty ugly, but the price we pay for the level being human readable in the DB.