Fix incorrect plural

This doesn't lead to any new strings as this string is duplicated in the lines
precending this one.
Refactor copy and paste of states dict creation

This lead to the error in the previous commit and would make it easier to
expand in the case of file types with other states.