Refactor Articles controller to make more readable