It seems that this dynamic grade and associated code is unnecessary - can't it be just moved into the implementation of "kettle.use.session"? (as well as moved into its file)