DbSqlSession: refactoring to improve readability.