Refactor specs and create shared examples for RESTful resources.