Refactor MoviesController.