Refactor HSchemer.hs into multiple files.