Used refactoring in PostsController and TopicsController