Clean up and refactor of GFF/MISO scripts