Refactor profile routes. Closed #82