Damien Separate quote retrieval and creation into file and add tests.