Refactor level tuples into a Level class.