Refactor to resourceful routing.