Refactor so we don't need a database to test the symbol algorithm.