Refactor into a Sequel extension