Remove str_replace_fragment since it is no longer used anywhere.