Refactor following and followers routes