Remove incorrect static declaration on get_top_level_id