Rename ns's and standardize resource names.