Refactor article action code