Refactored thanks to @gakuzzzz

https://github.com/scalikejdbc/scalikejdbc/commit/3d617af821900e228bb4a8aadcdde561bc6ec1cc#commitcomment-5008905