Breaks resource route creation out into separate method. Adds to the example.