Moved route boilerplate to route module