shorten rating code with Item class

The frequently used code for retrieving an ID for name and
version has on master been moved to the Item class. Use it
now that it's finally available for the rating page.