Refactoring the code for reviews on /restaurants