Remove unnecessary get_snapshot_tables() subroutine
Remove set_temporary_table_tablespace() subroutine and instead lazy-initialize $_temporary_tablespace variable
Remove unused subroutine attach_stories_to_media()
Move get_color_hash_from_hex() to MediaWords::Util::Colors so that other parts of the code could use it too
Remove unused subroutine get_node_size()
Remove unused subroutine stories_exist_for_period()
Remove unused subroutine write_word_counts()
Move truncate_to_monday() and truncate_to_start_of_month() to MediaWords::Util::SQL so that other parts of the code could use it too
Remove unused subroutine write_cleanup_dumps() and dependent subroutines write_post_dated_links_dump(), write_post_dated_stories_dump(), write_media_domains_dump() and write_dup_stories_dump()
Remove unused subroutine get_periods()
Prefix private subroutines with "_" in order to make it clear which subroutines are package's entry points
Remove unused variable