Moved some of the code to helpers files to DRY things. Probably will create a factory for the sequel gem.