Refactor articles controller.