Remove the session parameter, as not used in unit testing now.