refactor some constants out of ansi_classify_table for readability and testing