More refactoring into scarbre.
refactor corpus handler method into object