minor refactor: use a copy of level instead of copying each of its members.