Refactor route definitions.

Split out common and item routes into the respective namespaces.