Convert get_table_name() to a static method