Refactor and extract upvotes/downvotes controller