removing implicit Session from extractId and withId methods, totally unnecessary.
(someone have done a copy-n-past here!!!)