move scope_level to a method on the scope object

now we don't have to have a hard coded key
move the scope level key fully inside the scope object
scope_level is no longer a hash key, just use the ivar
change to attr_reader