Refactoring get likes and comments